Maybe the content is not yet loaded when first statement executes?

- kangax

On Apr 21, 3:31 pm, seran128 <[EMAIL PROTECTED]> wrote:
> In my code I have an Ajax.Updater call
>
> this.makePeriodicalUpdater('mydiv,postback.php','post','','false');
>
> then after the call I alert the element.GetHeight()
>
> alert('Div Height'+Element.getHeight('myDiv')); // It returns 0
> then i do the same alert
> alert('Div Height'+Element.getHeight('myDiv')); // It returns 290
>  which is the height of my div
>
> If I place an alert before these alerts like alert('hello');
>
> the first alert returns a value as well.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to