I used this code, it is working fine
var arr = MyDiv.getElementsByTagName('script')
for (var n = 0; n < arr.length; n++)
eval(arr[n].innerHTML)//run script inside div
More Related Contents:
- How to send data to the server via Ajax?
- HTML: how refresh information in [closed]
- How to send FormData objects with Ajax-requests in jQuery? [duplicate]
- Submit form without page reloading
- In what situations would AJAX long/short polling be preferred over HTML5 WebSockets?
- How to communicate between iframe and the parent site?
- load scripts asynchronously
- Changing CSS Values with Javascript
- Set timeout for ajax (jQuery)
- Using HTML5 file uploads with AJAX and jQuery
- How to bind Events on Ajax loaded Content?
- Will HTML5 allow web apps to make peer-to-peer HTTP connections?
- Want HTML form submit to do nothing
- How does facebook rewrite the source URL of a page in the browser address bar?
- Javascript regex returning true.. then false.. then true.. etc [duplicate]
- How do I abort image load requests without using window.stop()
- Is there a best practice for generating html with javascript
- Using Javascript to override or disable meta refresh tag
- Get HTML code using JavaScript with a URL
- How to replace html element with ajax response?
- How to change URL in browser without navigating away from page?
- how to use jQuery ajax calls with node.js
- Drag-and-drop file upload in Google Chrome/Chromium and Safari?
- jQuery DataTables “No Data Available in Table”
- How to make a button execute a php script?
- How do I dynamically insert an SVG image into HTML?
- Loading script tags via AJAX
- jquery ajax parse response text
- Parsing returned HTML from jQuery AJAX request
- How to replace the entire html webpage with ajax response?