الثلاثاء، 8 أكتوبر 2013

Re : .popup('open') not working after navigate next page

By Unknown   Posted at  9:42 ص   jQuery Forum No comments

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

About the Author

Nulla sagittis convallis arcu. Sed sed nunc. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.
View all posts by: BT9

0 التعليقات:

Back to top ↑
Connect with Us

© 2013 jQuery Forum. WP Mythemeshop Converted by Bloggertheme9
Blogger templates. Proudly Powered by Blogger.