[Proto-Scripty] Element.update() without evaluating the script.

2009-12-07 Thread JoJo
I have a textarea id=foo which contains JS code that people can
copy and paste. It's dynamically generated, so I do something like
this:

$('foo').update('script . ' + this.someVariable + '/);

The documentation on Element.update states that the script will be
evaluated rather than inserted literally. It does not tell me how to
stop the evaluation. How may I do this?

--

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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




Re: [Proto-Scripty] Element.update() without evaluating the script.

2009-12-07 Thread Rick Waldron
What condition should exist to stop the evaluation?

-- Sent from my Palm Prē
JoJo wrote:

I have a lt;textarea id=foo which contains JS code that people can

copy and paste. It's dynamically generated, so I do something like

this:



$('foo').update('lt;script . ' + this.someVariable + '/);



The documentation on Element.update states that the script will be

evaluated rather than inserted literally. It does not tell me how to

stop the evaluation. How may I do this?



--



You received this message because you are subscribed to the Google Groups 
Prototype amp; script.aculo.us group.

To post to this group, send email to prototype-scriptacul...@googlegroups.com.

To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.

For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.






--

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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.