Response title
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 pagebeforeshow and all my data is reloaded and previously made changes lost.pagebeforeshow after coming back from a long select menu (dialog)?pagebeforeshow to detect a previous dialog:if(options.prevPage.is(":jqmData(role='dialog')")) return; bind() & live() & on() & delegate() ... 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) )).© 2012 jQuery Foundation
Sponsored by
and others.
