Element.update can take a string (in which case it's set as
innerHTML), an Element object, or any object that responds to either
toElement or toHTML (and which returns accordingly either an element
or a string of html :))

(The same goes for Element.replace and Element.update)


On Jan 7, 2008 9:02 AM, kinfei <[EMAIL PROTECTED]> wrote:
> using
> Prototype-version: 1.6.0
> Currently element.update( document.createElement( "div" ) ) ---almost
> equal--- element.appendChild( document.createElement( "div" ) );
> but it should able do,
> element.update( document.createTextNode( "hello" ) ) as
> element.appendChild( document.createTextNode( "hello" ) );
> >

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to