EasyUI Forum
May 08, 2024, 08:49:54 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: Delay Ajax Loading?  (Read 10616 times)
tslatt
Jr. Member
**
Posts: 85



View Profile
« on: November 14, 2011, 07:48:48 AM »

When the content of a panel is loaded by ajax with the "href" property, is it possible to delay the load until it is triggered by an event?

I'm using the portal layout. Each panel within the portal contains lots of data. Loading a portal with 20 widgets is like loading 20 pages of data at once. It can take a long time -- long enough for alert boxes to appear asking me if I want the script to continue. To fix this, I would like to load all panels within the portal collapsed and EMPTY to begin with. Then, only when a panel is expanded or maximized, would the content be loaded via ajax.

Can you tell me if this is possible, and how it could be implemented? Any help would be greatly appreciated.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 14, 2011, 06:44:23 PM »

The panel load its content via 'href' only when the panel is opened or expanded. Set 'closed' property to true or 'collapsed' property to true to prevent the content from loading at once.
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!