hi there,
i have a textarea box that i want to be able to save javascript code into a database. (which i have no problems doing)
my problem is displaying the javascript code/script tags in my textarea after retreiving it from my database via ajax request. it won't show:
<script>blah blah blah</script>
i know that the js code/script tags are being retreived from the database because i can inspect ajax repsonse and see the script tags.
i set the evalScript to false so that it will not evaluate js code and still i see nothing in my text area box.
the only thing that will show is any text outside of the script tags.
any help?
i have a textarea box that i want to be able to save javascript code into a database. (which i have no problems doing)
my problem is displaying the javascript code/script tags in my textarea after retreiving it from my database via ajax request. it won't show:
<script>blah blah blah</script>
i know that the js code/script tags are being retreived from the database because i can inspect ajax repsonse and see the script tags.
i set the evalScript to false so that it will not evaluate js code and still i see nothing in my text area box.
the only thing that will show is any text outside of the script tags.
any help?