Hi there,
I'm now having an odd problem with Effect.Fade not working based on
the innerHTML of a div.
Take the following for example...
<div id="blah">
Nothing here yet.
</div>
If I then update "blah", hide it and then fade it in, like so:
<script type="text/javascript">
document.getElementById("blah").innerHTML = '<div id="box">Box content
goes here</div>';
Element.hide('box');
new Effect.Appear('box', {duration: 3});
</script>
That works beautifully.
However, if I attempt to fade out "box" after approximately 20
seconds, nothing happens at all.....
I'm attempting to fade out using:
new Effect.Fade('box');
If I reload the page, which PHP produces, which already contains the
div's in place - fade works perfectly. Any ideas? The only
difference I can see between the content of the current div and the
new div, is the opacity level. Should this make a difference?
TIA,
Rich.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---