Can I use $.mobile.changePage() to switch between pages?
solveitinc opened this issue · comments
Before this plugin, I was forced to use data-ajax=false to properly load multiple jqm pages into the DOM. I would like to start "ajaxing in" my multi-page template, so I tried this plugin.
Unfortunately, I seem to have lost the ability to programmatically switch between the pages. I was previously using $mobile.changePage("#pageDivName"); to move from one jqm "page" to the next, but it isn't working after implementing the plugin. jQuery mobile is throwing an error stating "Unable to get property '_trigger' of undefined or null reference." This is on line 4065 of jquery.mobile-1.3.1.js.
Is there a trick to getting changePage to work with this plugin? Thanks.
Any idea guys?
Once the page with the subpages is loaded, the subpages are inserted into the DOM as pages. Check your args to changePage(). Links to subpages definitely work, so you could also set breakpoints to see what the system (jQM) is doing.
Cheers, Todd
From: solveitinc [mailto:notifications@github.com]
Sent: Friday, December 27, 2013 6:16 AM
To: ToddThomson/jQuery-Mobile-Subpage-Widget
Subject: Re: [jQuery-Mobile-Subpage-Widget] Can I use $.mobile.changePage() to switch between pages? (#29)
Any idea guys?
—
Reply to this email directly or view it on GitHub #29 (comment) .Image removed by sender.
Thanks Tood. I’ve spent the past few days looking into it but I haven’t had much luck figuring it out.
I am able to reproduce the issue by adding a second button to the SubpageParent file in your sample – but instead of linking to the subpage via href, I’m firing a little js and attempting to perform a
The strange part is that is work if I refresh subpageparent, but breaks when I ajax in subpageparent.
From: Todd Thomson [mailto:notifications@github.com]
Sent: Friday, December 27, 2013 3:08 PM
To: ToddThomson/jQuery-Mobile-Subpage-Widget
Cc: Corey O'Mara
Subject: Re: [jQuery-Mobile-Subpage-Widget] Can I use $.mobile.changePage() to switch between pages? (#29)
Once the page with the subpages is loaded, the subpages are inserted into the DOM as pages. Check your args to changePage(). Links to subpages definitely work, so you could also set breakpoints to see what the system (jQM) is doing.
Cheers, Todd
From: solveitinc [mailto:notifications@github.com]
Sent: Friday, December 27, 2013 6:16 AM
To: ToddThomson/jQuery-Mobile-Subpage-Widget
Subject: Re: [jQuery-Mobile-Subpage-Widget] Can I use $.mobile.changePage() to switch between pages? (#29)
Any idea guys?
—
Reply to this email directly or view it on GitHub #29 (comment) .Image removed by sender.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-31277956.
http://m.integra-international.net/
Crush when update page.
Sorry, http://m.integra-international.net/firms/directory/directory
Crash when update page