I have a pagination functionality, where the user can either enter page number OR use arrows (< or >) to navigate the results..
Now here is the scenario where I am having issue in Safari;
1. Say I enter “3” in the page number textbox (i.e. to directly go to page 3)
2. I press Enter
The result is that in Safari, even though it takes me to page 3, the number in page number textbox also shows “3” momentarily and then resets to “1”
Now I want to know why does this reset back to 1..It always resets to 1, no matter which page number I go to..
I am really sorry that I won’t be able to provide the complete code (both bcoz of security issues and it being huge)…But all I can tell is that internally, it uses DWR, AJAX, jQuery..
Also as a hint; When I press Enter, it gets all the data for that page from the server, shows it completely and as soon as it is done, it resets the textbox to 1..i.e. to the initial value specified in the HTML code..So is there some default event taking place in Safari, which I need to prevent..
Have you stepped through your code to make sure you didn’t miss your resetting your own variable to 1? It has happened before to the best of us.