I have a button in my page. While clicking the button, it will make an ajax call to a web service method. Tells say, HelloWorld(). Its a web method. This method will return a bunch of string which contains, html & javascript enclosed in the <script> tag.
<div id="demo">
<script type="text/javascript>
$('demo').append('<h1>Hello!!!</h>');
</script>
After i get the response, i try to append the content to anther div.
function onAjaxSuccess(response){
$('#somediv').html(response.d); // response.d will have the html and javascript.
}
when i try to do this, i get permission denied error.
How do run the script which i retrieved from the server?
Thanks
Go to the complete details ...