There are two separate issues here:
1. You cannot duplicate an ID in the DOM. This has nothing to do with jQuery Mobile. It is basic browser functionality. No browser can properly deal with a duplicated ID. They punt the best they can. You should never duplicate an ID. It is non-obvious to developers, though, that in JQM you should not duplicate an ID anywhere in your entire site, and so a lot of developers have trouble with this.
2. Prior to JQM 1.4, popups have to be defined within the page in which they are used. I believe in 1.4 the popup could be on another page, but unsure of the details, as documentation is incomplete since 1.4 is still in beta. Of course, if you were to reference a popup that's defined on another page, you need to insure that the other page is actually loaded in the DOM. Normally, pages are removed once they are no longer needed.
via jQuery Forum http://forum.jquery.com/topic/popup-open-not-working-after-navigate-next-page#14737000004786975
1. You cannot duplicate an ID in the DOM. This has nothing to do with jQuery Mobile. It is basic browser functionality. No browser can properly deal with a duplicated ID. They punt the best they can. You should never duplicate an ID. It is non-obvious to developers, though, that in JQM you should not duplicate an ID anywhere in your entire site, and so a lot of developers have trouble with this.
2. Prior to JQM 1.4, popups have to be defined within the page in which they are used. I believe in 1.4 the popup could be on another page, but unsure of the details, as documentation is incomplete since 1.4 is still in beta. Of course, if you were to reference a popup that's defined on another page, you need to insure that the other page is actually loaded in the DOM. Normally, pages are removed once they are no longer needed.
via jQuery Forum http://forum.jquery.com/topic/popup-open-not-working-after-navigate-next-page#14737000004786975
0 التعليقات: