Thus, firefox has an excellent mechanism that will try to autocomplete the values ββin the fields when you reload the page or use the back button. This is great and all, except when you have something like a drop-down list that, when set to a value, changes the page using ajax.
What happens is that the browser reloads the page, the drop-down menu is pre-populated with a memorized value, and after the house is ready, the change event does not fire. And therefore, attached change handlers do not work, and therefore the page does not refresh.
Is there a good way to βfixβ this behavior so that it works for the user as expected:
a) We want the browser to automatically shut down because it is a good user interface.
b) Still want this event to change.
The only thing I can do now is to add a finished event to the document in which javascript is pre-populated with initial values ββin the form, when the document loads javascript, it will check the pre-populated values ββand, if they do not match what is in the input, they will call change handlers .
Does anyone have a better solution? Is there a lib that does this already?
(Using Rails 2.3.5 + jQuery)
source
share