EasyUI Forum
May 01, 2024, 09:45:30 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 -> other.html (parameter)  (Read 5659 times)
Szoron
Newbie
*
Posts: 21


View Profile
« on: September 01, 2016, 04:20:53 AM »

Because it would be too large file at the same time , so the loading is very slow, I was split into several parts.
login.html -> ip.html
->
1 address.html
2 chat.html
3 riport.html

login.html managed by a
Code:
<Script type = "text / javascript" src = "./ jwebwalker2.1.js "> </ script>
file.
The jwebwalker2.1.js file that can be invoked in the ip.html components in ?
Now:
Code:
<a href="javascript:void(0)" onclick="login()" class="easyui-linkbutton" style="width:100%;height:40px"> <span style = "font -size: 16px " > Login < / span a>

login.php ->
          
Code:
.mobile.go $ ( '# Ip_page ');
          $ ( '# Ip_navpanel ' ) navpanel ( ' refresh ', ' / ip.html . .');
          $ ( '# Ip_title ' ) html ( jQuery.data ( document.body , " main_title " ) ) . ;
However, from the first click did not pass the title name
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: September 01, 2016, 07:57:12 AM »

If the '#Ip_title' is defined in 'ip.html' page, you should wait the panel content to be loaded before accessing it.
Code:
$('#Ip_navpanel').navpanel({
    onLoad: function(){
        $('#Ip_title').html(...);
    }
});
Logged
Szoron
Newbie
*
Posts: 21


View Profile
« Reply #2 on: September 03, 2016, 12:34:49 AM »

Thank you!
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!