Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

External page being reloaded when dialog closes #5239

Closed
maurice2k opened this issue Oct 31, 2012 · 1 comment
Closed

External page being reloaded when dialog closes #5239

maurice2k opened this issue Oct 31, 2012 · 1 comment

Comments

@maurice2k
Copy link

Changing to a new page from a page that has been previously loaded using AJAX (external page) triggers a removal of this external page. This seems completely logical and you can also disable this behaviour using data-dom-cache="true".

However, when it comes to dialogs the removal of the previously loaded external page is probably not what you want (regardless of what data-dom-cache is set to) because it's most likely that closing the dialog should show the underlying page again.
Currently this triggers a reload which also means that all modifications to that page (checkboxes being checked, filled forms etc.) are gone.

Expected result: If the new page is a dialog the previous page should not be removed from DOM.

Online test page:
http://jsbin.com/alijiy/5

There's also a post on stackoverflow addressing this problem:
http://stackoverflow.com/questions/9364424/why-is-jquerymobile-reloading-the-page-on-dialog-close

@arschmitz
Copy link
Contributor

@maurice2k this is currently this is the expected behavior since dialogs are just a way of displaying a page im going to mark this as a feature request add to the wiki and close. we will reopen if we decide to implement this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants