Hey all,
I have some AJAX on my site, and part of what it returns is a piece of code that is in the <script> tags, but this is totally ignored (I'm assuming becuase of <scritp> tags within the original set of <script> tags.
Does anybody know a way around this?
Example code -
Where the responce contains somthing like as follows. It is this that is being ignored -
Thanks.
I have some AJAX on my site, and part of what it returns is a piece of code that is in the <script> tags, but this is totally ignored (I'm assuming becuase of <scritp> tags within the original set of <script> tags.
Does anybody know a way around this?
Example code -
Code:
<script type="text/javascript"> ...Code before document.getElementById('service-content').innerHTML = response; Code after.... </script>
Code:
<script>Display this if JS enabled</script>
Comment