jquery mobile ui-dialog breaks back button

jquery mobile ui-dialog breaks back button

Hi all.

I hope this is the place to find help, i have had not luck with even getting close to an answer from the jquery mobile pages.

I have a page that has a select list on it. This is auto re-styled to jquery mobile ui-dialog.
I have added an onchange to the select list to populate the list with ajax.

The problem is that this action does what i need it to, but because the ui-dialog is not being closed in the right way, it leaves &ui-dialog on the query string which means that when the user hits the back button they go to a blank page.

Unfortunately i have inherited this page and just need to fix it, but so far my thoughts on jquery mobile are that is a very hidden in what it is doing, with so much automatic changing of elements and their events.

I am using jquery ajax for the ajax call, it just seems that jquery mobile is not coded to deal with events on the elements it re-styles for you... 
This is a bit bit sloppy to be honest, if a framework changes my elements to pretty ones, but then does not preserve how i interact with them or tell me the way i should.

Thanks in advance for any suggestions.

Jez
    • Topic Participants

    • jez