Hi all, I'm using the following code for my LoadPanel. The height of my "mainContent" is set to 600 because the initial page I'm loading (psmain.html) is all layers (ie: divs). I found that if I leave the height at 50, (as was the original setting in the script) then all that is displayed from the index.htm page with "mainContent" is the first 50px of the page loaded into "mainContent". Is there a way to make this height dynamic and just size the layer according to content ? It seems to have worked that way when the original 'psmain' page was all tables, and it works ok for all my subsequent pages, which are a combination of text and tables. It only seems to NOT work when I changed "psmain" to layers :(
DynAPI.onLoad=function() { mainContent = new LoadPanel("psmain.html"); mainContent.setHTML(); mainContent.setSize(612,600); // height will be overwritten by default mainContent.moveTo(171,112); mainContent.setBgColor('white'); counter = 0; var el = new EventListener(); el.onload = function(e) { //status = 'got load event '+ counter++; } mainContent.addEventListener(el); DynAPI.document.addChild(mainContent); } Thanks in advance ! Diane R Tomlins ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help