EasyUI Forum
November 04, 2025, 04:34:32 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: mobile.go to another html  (Read 16170 times)
Szoron
Newbie
*
Posts: 21


View Profile
« on: January 31, 2016, 10:52:00 AM »

Hello

The current application that I created , has become too big!
1 js one more php html .
Loading time 10 seconds
I tried to dismantle the program !
One login ->
A and B side . Depending you check in .
How can I get a
login.html reach a A.html for?
mobile.go point to A.html from
Thanks
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 31, 2016, 06:04:10 PM »

Call $.mobile.go method to navigate the panel to another panel. The panel can load the content page when becoming activated.

Code:
<div class="easyui-navpanel">
<header>
<div class="m-toolbar">
<div class="m-title">Login</div>
</div>
</header>
<button onclick="$.mobile.go('#apage')">go</button>
</div>
<div id="apage" class="easyui-navpanel" href="a.html" closed="true">
<header>
<div class="m-toolbar">
<div class="m-title">A page</div>
</div>
</header>
</div>
Logged
Szoron
Newbie
*
Posts: 21


View Profile
« Reply #2 on: February 01, 2016, 12:13:02 AM »

Thank you!

Why not be the first easyui - navpanel
It is loaded into ?
A.html the sheet is more navpanel and third load.
The .mobile.go $ ( ' # Name a.html first panel ' )

Yet another panel is loaded when the page opens another
Logged
Szoron
Newbie
*
Posts: 21


View Profile
« Reply #3 on: February 02, 2016, 02:56:27 AM »


I refer to a panel:
Code:
<button onclick = "$.mobile.go ('#apage')"> go </button>
Which I refer to in an empty navpanel:

Code:
<div id = "apage" class = "easyui-navpanel" href = "a.html" closed = "true">

The site has more a.html navpanel included.

     
Code:
<div id = 'main' class = 'easyui-navpanel "style =" padding: 0px ">
.
.
Code:
</div>

etc.

Code:
<div id = "dlg_signature 'class =' easyui-navpanel '>
.
.
Code:
</ div>

How can I get the first navpanel loads?
How can I get to pass out of the login.html into a.html
parameter?
Logged
Szoron
Newbie
*
Posts: 21


View Profile
« Reply #4 on: February 21, 2016, 04:59:48 AM »

Unfortunately I did not get answers to my problem !
For some reason, very long time to load the page to the system !
Tablet via a Firefox bug could indicate when charging page !
Many navpanel is in HTML
The Safari web inspector According fills the little icons leaglább 10 seconds. ( 15-20 ) a small icon .
How to solve it?
- Keep the page loads , loads all!
- Multi-threaded loads the page ( the login section appears in the background while the other navpanel and content)
- Any other effective mogoldás !

Thank you in advance for your help !
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #5 on: February 21, 2016, 07:08:20 AM »

You only need to define one navpanel component to load other external content pages when navigate to it. Please refer to this code:
Code:
$.mobile.go('#apage');
$('#apage').navpanel('refresh', href);  // reload the content page
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!