EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Szoron on January 31, 2016, 10:52:00 AM



Title: mobile.go to another html
Post by: Szoron 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


Title: Re: mobile.go to another html
Post by: stworthy 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>


Title: Re: mobile.go to another html
Post by: Szoron 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


Title: Re: mobile.go to another html
Post by: Szoron 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?


Title: Re: mobile.go to another html
Post by: Szoron 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 !


Title: Re: mobile.go to another html
Post by: stworthy 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