exptrade2001-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
2007-Jan-15 14:41 UTC
Effect.Fade question
I have multiple div on my page on which I try to perform fade and
appear effects. I works fine for the first <div> and only on the first
div. Any subsequent div does not react to effect at all. Here is the
javascript code. I''ve debugged the code and _divMain is found, it is
there with correct id, but effect does not happen. This is using Anthem
ajax library (very cool by the way as it maintains the view state).
Basically what is happening it that I want to fade a chart until
callback if finished and then show new image, by fading it in. It works
on first one that I click on, but on any subsequent ones, effect is
ignored (new image just gets shown, without fade in/out effect). Has
anybody experienced the same problem?
function Anthem_PreCallBack()
{
ctlPrefixID
event.srcElement.id.substr(0,event.srcElement.id.lastIndexOf("SavedQueryView"))
+ "SavedQueryView";
_divMain = dnn.dom.getById(ctlPrefixID +"_divMain");
_imgLoading = dnn.dom.getById(ctlPrefixID +"_imgLoading");
//_imgLoading.style.display=''block'';
new Effect.Fade(_divMain, {from:1.0, to:0.1, duration:0.3});
}
catch (err)
{}
}
function Anthem_PostCallBack()
{
try
{
//_imgLoading.style.display = ''none'';
new Effect.Appear(_divMain, {from:0.1, to:1.0, duration:0.3});
}
catch (err)
{}
}
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---