2 Replies - 423 Views - Last Post: 16 January 2016 - 02:43 PM

#1 jrahma   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 44
  • Joined: 11-January 14

why <select> is refreshing my page?

Posted 16 January 2016 - 01:52 PM

Hi,

In this page:

http://www.mybluefile.com/m/attendance

when you select the year everything is ok but when you select the month it will immediately refresh the page and I don't get any error in the console.

How can I fix this please?


Thanks,
Jassim

This post has been edited by Atli: 13 May 2016 - 02:05 PM

Is This A Good Question/Topic? 0
  • +

Replies To: why <select> is refreshing my page?

#2 andrewsw   User is offline

  • no more Mr Potato Head
  • member icon

Reputation: 6957
  • View blog
  • Posts: 28,696
  • Joined: 12-December 12

Re: why <select> is refreshing my page?

Posted 16 January 2016 - 02:33 PM

I would first fix the HTML errors. HTML Validator. This could even be the source of the problem, because malformed HTML can cause a form to be submitted on clicking some random element.

Then, if you know what Javascript is running, post the code directly here. (Don't post jQuery library code though, this must be assumed to be correct.)
Was This Post Helpful? 0
  • +
  • -

#3 jrahma   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 44
  • Joined: 11-January 14

Re: why <select> is refreshing my page?

Posted 16 January 2016 - 02:43 PM

Great.. One issue is solved. Now I don't need to refresh the page. It was a duplicate ID. Thanks for the validation advise.

Now, I have the issue of refreshing the page.

I have noticed that this will happen only when I run on mobile

Try

http://www.mybluefile.com/m/attendance

on normal browse and everything will be fine but then use the console to use mobile emulator and you'll notice when you click on the cboMonth then the page will be immediately refreshed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1