EasyUI Forum
April 27, 2024, 08:33:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Navigation in different pages  (Read 2717 times)
officecode
Jr. Member
**
Posts: 69


View Profile Email
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!