Only the first attempt to dynamically create a dialog works, and all the following attempts just repeat the result
I have a function which always works fine to dynamically create a page. However, it becomes problematic, if I add
- data-rel="dialog"
to the target URL. The symptom is that I can successfully generate the dynamic dialog for the first time, and my following attempts to generate a different dialog cannot work any more and would repeat to display the first-time dialog.
In investigation, I found the
- $page.children(":jqmData(role=content)")
returns null starting the second time. Does anyone knows why and how to fix?
Please check the example here, http://jsfiddle.net/RtYuP/10/.