EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: officecode on June 06, 2019, 11:57:56 PM



Title: Navigation in different pages
Post by: officecode on June 06, 2019, 11:57:56 PM
For example, #p1 in page1, how to use $.mobile to navigate to #p2 in page2?
Try the following code, invalid:
Code:
$.mobile.go('page2.html#p2')
Thank you.


Title: Re: Navigation in different pages
Post by: jarry on June 08, 2019, 04:17:56 AM
You can't do that. The javascript code runs in different pages. You have to navigate to the page2 and then call $.mobile.go to change the navpanel.