Use the String#stripScripts method: $('infocolumn').update($('hiddenbox').innerHTML.stripScripts())
-Fred On Fri, Jun 27, 2008 at 9:43 AM, MarcusX <[EMAIL PROTECTED]> wrote: > > Hi everyone! > > I have a hidden div-Box with some content. Inside the div box is some > JavaScript. I fetch the content of the hidden div-Box with the > prototype $ method and put it into another one which is visible. > (using the "update" method) After the paste the script is executed and > all page content is replaced by the script output. > Is there a way to avoid the script inside the pasted HTML to be > executed? -- Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---