I'm sending a jquery get request like so:
$.get($(this).attr("href"), $(this).serialize(), null, "script");
The response I expect to receive will be wrapped in script tags.
I understand the browser doesn't execute the response unless its returned without the script tags. Normally I would remove the tags from the response but in this situation I don't have access to the code running on the remote machine so cannot strip out the tags at the source.
Is there a way I can strip out the script tags from the response client side and execute the javascript?