SCRIPT() works just like Massimo told...
I just realized that I was coppying the resulting div that contained
the javascript through an document.getElementById(id).innerHTML; to
another div, and the <script> tags arrent supported!
Thank you for your help, and sorry for the confusion I've made.

On Jan 12, 2:38 am, Jonathan Lundell <jlund...@pobox.com> wrote:
> On Jan 11, 2011, at 5:04 PM, Martin.Mulone wrote:
>
> > Perhaps I miss something but did you render in a view with 
> > {{=XML(SCRIPT(alert("hi");))}} , and if you want to execute when the page 
> > is loaded you have to put the code in
>
> No need for XML(SCRIPT(xxx)), I don't think.
>
> Either XML
>
> ('<script>something</script>)
>
> or
>
> SCRIPT('something')
>
> ...it seems to me.

Reply via email to