This content has been marked as final.
Show 2 replies
-
1. How do I place external content in a Collapsible Panel
Arnout Kazemier Jan 25, 2008 12:19 AM (in response to jefbak)Check out this example.
http://labs.adobe.com/technologies/spry/samples/utils/update_content.html
its about updateContent which allows u to place content in your div.
U could create a little function for it to load content in your divs.
Example of load indicator + function setup:
the indicator div
<div id="indicatorMessageBoxId"><img scr="imagehere.gif" /> Please wait loading content </div>
The function (place in <script> tags and place it in header (dont forget to include SpryData.js)
function updateContent(ele,url){
//U call this by using the command: updateContent('ID_toLoad_contentIn',url_of_new_content');
document.getElementById('indicatorMessageBoxId').style.display = ""; //this will show the indicator loadimage box
Spry.Utils.updateContent(ele, url, function() {
document.getElementById('indicatorMessageBoxId').style.display = "none"; }); //this will hide the box when loading file is done
});
}
u can attach this function on your collapspannel by adding a onclick="updateContent('myId','data/page.html');" to the element.
Hope this helps :) -
2. Re: How do I place external content in a Collapsible Panel
jefbak Jan 25, 2008 1:14 AM (in response to jefbak)Thanks V1, always an honor to get an answer from you.


