I have made a custom lightbox. What matters is that it pops up saying
Loading in a small div. I then set the visibility to hidden when I get
the data to update. Next I update the div with $
('innerDIV').update(updateTxt);.I then reposition it to center on
screen based on the height and width. Then I make it visible again.


For some reason .update makes it visible before i manually do it.

If I change the line to $('innerDIV').innerHTML = updateTxt;
everything works perfect

The code summary is this:
$('innerDIV').style.visibility='hidden';
//$('innerDIV').innerHTML = updateTxt; would make it work properly
$('innerDIV').update(updateTxt); //will make it visible too soon so
you see it flicker before reposition
positionPopup(); //positions and then makes visible

I need to use update to run some JS. I have checked that the JS does
not make anything visible.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to