Code:
My_Variable = PHP.urlencode(My_Variable);
No doubt you'll get a JS error on that line, because "My_Variable" is undefined, you can remove that line.
Also the HTML would just include the JS file, ie:
HTML Code:
<script type="text/javascript" src="clientscript/test.js"></script>
As I stated in the main post, getting the JS to change the html on the page dynamically is up to you, it is recommended you know Javascript really. If you would like to look at a working example i'd suggest looking at my vBShout for 3.5 really.
- Zero Tolerance