Hi,
check oout the documentation...!
Element#update updates the content of the element with the supplied
html... and returns the element (that''s for chaining purposes)!
That''s why you are seeing the element ''frame''
returned by firebug.
Regards,
Tobie
On Oct 15, 3:54 pm, happysad
<lars...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> I am a new user of Prototype - very satisfed so far except for one big
> issue:
> It would seem that the Update function cannot parse my html correctly:
>
> $("frame").update(newHtml)
>
> I give newHtml the value "<div />" in the debugger before
calling the
> above, and this gives the element ''frame'' the html
content "<div /></
> div>"? It should just be <div />, or at least
<div></div>...
>
> This caused me a lot of trouble trying to figure out where all my
> elements were going...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---