From: <cam...@ya...> - 2001-01-05 10:32:08
|
> > Why not just capture the onload event. Thats why > it is > > invoked there. Or > > am I missing something here? I've had lots of problems with the onload in LoadPanel. Mostly in Netscape. The problem is I think Netscape fires an onload event before it renders the HTML. So if you try and get the contentHeight of the LoadPanel onload it is often 0 in Netscape. This doesn't happen in the sample that is in the snapshot, but it does as soon as you start loading largish pages into the LoadPanel. Of course this doesn't solve the problem below... One question Mark, are you resizing the LoadPanel in your onload handler? > No - I think that I was missing something :). I > added an onload event listener for the panel and > that works like a charm...except in IE (5.00) the > event gets called twice for some reason. I haven't > been able to track it down yet. It doesn't seem to > be a big deal other than viewing my widget resize > twice before the content is displayed in the panel. > It's strange cause when I create a panel, I initally > have to set the size to my layer's wxh. Then, when > the onload event occurs I see the panel getting > resized (in IE) to my layer's wxh, then again to the > content height. I added a fix in my onload function > for IE that says: > > if (is.ie && e.getSource().isReloading == null) > return; > > but this seems like kinda of hack. > > On a side note, the widget I'm creating is a wizard > (which I need to use for a current project that I'm > working on). I'd eventually like to contribute this > to the dyanpi project. How can I go about this ?? > > thanks, > > > -Mark Haviland > ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÃÊv©ðÞ¾f¢)à+-)Ú¦/ÃzÿåËlþÊ.Ç¢¸þwÛiÿÿåËlþÊ.Ç¢¸þwþf¢f§þX¬¶)ߣ÷rªbýׯ > > __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ |