Login Retreive lost passwordRegister
Search

Forum Index / General / SetFocus issue

[ This topic is unsolved! ]

  Babak Fakhamzadeh 27 January 12 / 12:02  
After submitting a form, the focus is supposed to be set to the first invalid field. For me, the focus is set to the top of the page.

Similarly, when selecting a value from a drop down, the focus also jumps to the top of the page.

What could be causing this?

  Johan Wiegel (Admin) 27 January 12 / 12:09  
Any javascript included?

Can we see this online?

  Babak Fakhamzadeh 08 February 12 / 19:00  
Yes. jQuery and a few add ons on top of jQuery.

No, this is, unfortunately, not yet online.

What I notice is that upon submit, the page returned doesn't have a # in the URL, which I would presume is why the focus is not set properly.

How and where is the focus set? I might be able to figure out the cause based on that.

  Johan Wiegel (Admin) 09 February 12 / 07:53  
Read the manual about setFocus

http://www.formhandler.net/manual/57/SetFocus.html

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license