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 <[EMAIL PROTECTED]> 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 [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