This is preview!
pagebeforeshow) I fill the form with data that comes from an id. Everything works great, until I have a select menu that doesn't fit the screen and transforms in a so called dialog page. jQuery Mobile works great in that way, until I choose an item and I get back to my form page. Which then is called by
pagebeforeshowand all my data is reloaded and previously made changes lost.
pagebeforeshowafter coming back from a long select menu (dialog)?
pagebeforeshowto detect a previous dialog:
on()method is preferred, but jQM docs gives us multiple examples.
should be changed too:This method is a shortcut for
.bind('focus', handler)in the first variation, and
.trigger('focus')in the second
because in 1.4.3 theres a new possibility added (This method is a shortcut for
.bind('focus', handler)in the first and second variation, and
.trigger('focus')in the third
.focus( [ eventData ], handler(eventObject) )).