You can execute JavaScript code with the eval function, e.g.

    eval( result.jscript );

-Mike

> From: yellow1912
> 
> After I submit my form via ajax, I sometimes get back content (json
> format) with some inline jscript in one of the fields (i.e:
> result.jscript)
> 
> I've been trying to do something like this:
> $('#output').append(result.jscript);
> 
> It doesn't seem to work, however.
> 
> (In my case, I can't avoid these inline jscript, so I can't 
> really put them in external js files to load)
> 
> I really hope someone can shed some light here
> 
> Regards
> 
> Raine
> 

Reply via email to