EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Szoron on September 01, 2016, 04:20:53 AM



Title: .mobile.go -> other.html (parameter)
Post by: Szoron 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


Title: Re: .mobile.go -> other.html (parameter)
Post by: jarry 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(...);
    }
});


Title: Re: .mobile.go -> other.html (parameter)
Post by: Szoron on September 03, 2016, 12:34:49 AM
Thank you!