I\'m getting an ajax output success data.
Where the data contains some html text and a script.
But the script is not executing, how can I execute the script.
Not sure if you are using a library, but with Prototype I had to set
evalScripts: true
before JavaScript would be eval-ed. See here for more info:
http://www.sergiopereira.com/articles/prototype.js.html#UsingAjaxRequest