textbox - Javascript in a text box -
textbox - Javascript in a text box -
i trying figure out how generate javascript set javascript text box users can re-create it, similiar how modernizr lets configure library downwards loaded http://www.modernizr.com/download/#-iepp-cssclasses-load. created javascript string, when set text box formats in way not want %26%2360script%20src%3d%22http%3a//
<textarea id="code"> function renderad(size){ var sizes= size.split("x"); var code = $("#code"); var adcode = escape('<script src="{{ sitelocation }}/js/"=</script=<script<(function(){var settings = {"size":"'+ size +'};setup(settings);})();</script=') code.val(adcode); } anyone have experience this?
thanks, cg
this works me:
var path = "/path/to"; $('#code').val("<script src=\"http://someurl.com"+path+"\">alert(\"hello\");</script>"); withouth problem...
javascript textbox
Comments
Post a Comment