Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
10-24-2013, 05:55 AM #1
- Join Date
- Oct 2013
- Thanked 0 Times in 0 Posts
Enter button not running function and form variables being retained
Here's the page with the problems: http://greenthumbweather.com/index2.html
I'm using client-side google maps geocoding, and running the geocode function onsubmit. I have two problems which may be related. First, when I use the enter key, the geocode function doesn't run on FF or chrome and haven't tried IE. Submitting the form works with mouse click.
Second, which may be related, if I submit the form (with mouse) once and go back and try a different city in the search box, the one variable "search location" is updated but the lat and lon are not, as if the geocode function isn't running. Perhaps this is a timing issue where the function isn't running before it heads to the process2.php page? But if I go back and submit the form again, the lat and lon corresponds to the search location.
I've viewed quite a number of posts about the keyboard 13 key, but I couldn't get it to work in my case. Any help is appreciated. Thanks!