[Proto-Scripty] Re: Form.Element#setValue

2008-09-09 Thread ColinFine



On Sep 8, 10:27 pm, Justin Perkins [EMAIL PROTECTED] wrote:
 On Mon, Sep 8, 2008 at 3:35 PM, Alexey Bass [EMAIL PROTECTED] wrote:
  What I'm asking is that why this is not documented on Prototype site.

 Maybe it should be mentioned, but really Element#update is just using
 innerHTML to update the contents of a node, and since innerHTML cannot
 be used to update form elements, I've always thought it goes without
 saying that you use Element#update for most stuff except form
 controls.

But that restriction (on innerHTML) is not reliably documented, since
'innerHTML' itself is not part of any spec.

Colin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Form.Element#setValue

2008-09-08 Thread Justin Perkins

On Mon, Sep 8, 2008 at 3:35 PM, Alexey Bass [EMAIL PROTECTED] wrote:
 What I'm asking is that why this is not documented on Prototype site.

Maybe it should be mentioned, but really Element#update is just using
innerHTML to update the contents of a node, and since innerHTML cannot
be used to update form elements, I've always thought it goes without
saying that you use Element#update for most stuff except form
controls.

-justin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---