I have a page in jQuery Mobile, which is the main page. It has a list of items, and when you click on an item, it loads information about it. To dynamically load information, it calls an external page and brings everything. This external page has a small script to allow the user to process a button click (to send some information to the server).
When you load a page separately, it handles scripts very well. When you download it as a dialog, the scripts do not load.
I tried to put the script inside the page itself. I tried to place the script on the main page loading the dialog. None of this works. I debugged the console, and I cannot get it to read any scripts specific to the dialog of the external page.
Is there any trick, or are the dialogs just ignoring any scripts? Is there any way around this? Is there a way to completely stylize a page to look like a dialog until this problem is resolved?
Edit: I just did it without dialogue, and he still does it. If I load the page separately with AJAX turned off, everything will work. I need to save page transitions and the download dialog, so disabling it is not an option.
I am currently using an external page in my head:
<script> $(document).delegate("#productinfo", "pagecreate", function(){ </script>
source share