[Dojo-interest] htmlEffects.wipeOut using onload?
Tiedt Karl E SSgt 607 CBCS/SCMA
karl.tiedt at osan.af.mil
Sun Apr 30 22:23:38 MDT 2006
Your best bet would be to set the div info to 0 height etc... And then
dojo.fx.html.wipe(node, duration, startHeight, endHeight, callback,
If you use wipeIn/wipeOut it auto fills the end/startHeight respectively
which has been known to cause hiccups like when a wipeIn gets
interrupted, then the node never fully wipesIn again until you reset the
page completely by reloading it...
With a direct call to .wipe() which is ultimately what wipeIn/Out
uses... You can just specify the entire start/endHeight yourself
avoiding the problem (so long as you know exactly what values you need
to set them to otherwise... I don't see an entirely simple solution to
that problem just yet...
From: dojo-interest-bounces at dojotoolkit.org
[mailto:dojo-interest-bounces at dojotoolkit.org] On Behalf Of Andy
Sent: Monday, May 01, 2006 11:44 AM
To: dojo-interest at dojotoolkit.org
Subject: [Dojo-interest] htmlEffects.wipeOut using onload?
I've seen a few questions similar to this one, but no difinitve answers.
I want a div box to be invisible by default (when a page first loads)
and then based on a button press (click or whatever) I want the div to
"wipeIn" to place. I've tried two ways of solving this, both give me
1 during the OnLoad callback I call htmlEffects.wipeOut. This sorta
works except the users get to watch all the "hidden" divs collapse when
the page is first loaded.
2. I tried setting the div element's visibility to hidden. Which also
didn't seem to work because the space it would have taken up in it's
containing box is now just blank. There is a big "hole" where the div
should be. Maybe if I set its height to 1 and visibility to 0?
Anyone have a workaround for this? how do I collapse a div before I call
wipeIn for the first time? Thanks for any suggestions.
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo-interest at dojotoolkit.org
More information about the Dojo-interest