EasyUI Forum
September 14, 2025, 03:29:58 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: How can I show the webpage in the center frame using jquery Easyui?  (Read 14485 times)
foodil
Newbie
*
Posts: 5


View Profile Email
« on: March 02, 2012, 02:16:07 AM »

Code:
    <li><a href="#" onclick="addTab('Add List','list/add.php')">Add List</a></li>

Currently i know how to add tab , but how can i directly show the content in the center frame instead of adding tab ? 
Also, what is the css, js address file bind to ? the index page or the new center page? thank you.


Code:
    <div id="content" region="center" border="true" title="" style="overflow:hidden;padding:10px;">
    <div id="tt" class="easyui-tabs" fit="true"> 
    <div title="Home" style="padding:10px;"> 
    test
    </div>
    </div>
    </div>



 
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 02, 2012, 10:48:05 PM »

Notice that the '#content' is a panel object, there are some ways to load the content:

1. Call 'refresh' method of panel:
$('#content').panel('refresh',your_url);

2. Call 'load' method:
$('#content').load(your_url);

3. Call 'html' method:
$('#content').html(...);
Logged
foodil
Newbie
*
Posts: 5


View Profile Email
« Reply #2 on: March 06, 2012, 11:11:39 AM »

Thank you for your answer

are there any problem when using those load method?e.g.

1) css / js link is different from the case when using tab?
2) can i get the attribute in GET methmod?


hope you understand my question, sorry if confused 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!