It didn’t work. But why?
Simply stated, because the W3C Specification for XMLHttpRequest states:
“Scripts in the resulting document tree will not be executed, resources referenced will not be loaded and no associated XSLT will be applied.”
This is the code in our main web page:
And this is the content of the Ajax response:
At first glance, this may look like a bad coding practice, but I am not doing anything that one would not typically do when loading a JSON response: