-
Notifications
You must be signed in to change notification settings - Fork 2.4k
$.mobile.changePage to Page2.html and performing $.mobile.changePage('#', { transition: 'slide', allowSamePageTransition: true) causes 'Uncaught TypeError: Cannot call method '_trigger' of undefined' #6382
Comments
There are some issues with your markup. The second page is pulled in with AJAX and we don't remove the initial page, so you have same ID for different buttons in DOM. We also strongly recommend to put scripts in the
Closing as cannot reproduce. |
Hi @uGoMobi, Thanks for your reply. You mean that using pagecreate is recommended than using pageinit? The thing is i'm using external script.js, that's why I plug the scripts in the "< body >" section as $mobile.changepage will only load the first data-role="page". correct me if i'm wrong... It doesn't work. I got a black page.
|
I noticed that. The page is removed from the DOM if you transition to the same page (unless it's the initial page, because we never remove that from the DOM). That is something to look into as part of this issue #4078. I closed this ticket because I cannot reproduce the Uncaught TypeError. |
Yes, we deprecate |
need to look into why new page is not being pulled on same page transition on #4078 |
Hi Guys,
Uncaught TypeError: Cannot call method '_trigger' of undefined is being triggered!!!!
Files as follows:
index.html
page2.html
I've plugged in the workaround :
which works for the first page. But after transiting to the page2,html, performing another samePageTransition causes error!!!
The text was updated successfully, but these errors were encountered: