I have an html page that calls an AJAX call on a jsp page that has a javascript function, it seems that JS The function is not being executed.
Sorry, I wanted to find an answer, but no one found.
Thanks in advance.
If your data is javascript text, then you need to dynamically create a sctript tag and enter text in it. Will happen.
var head = document.getElementsByTagName ('head') [0]; Var script = document.createElement ('script'); Script.type = 'text / javascript'; Script.innerHTML = yourResponseScript; Head.appendChild (script);
Comments
Post a Comment