Hi, i want to add this piece of javascript : <!-- Begin Publisher Code --> <script src="http://www.adversal.com/cg.jsp"></script> <script src="http://www.adversal.com/publisherJS.jsp"></script> <script type="text/javascript" language="javascript"> initAdversal("8708bb9d80806013c99bb1910fb0a7cc", true); </script> <!-- End Publisher Code --> Code (markup): to a cgi script. How do i do this? (the script cannot be posted as it's too long)
Also, when i upload the script and then try and use it, it just returns a blank page untill i upload the script as it was when i downloaded it, even if i didnt change anything!
I'm feeling a little slow this morning (I'm behind on my coffee). So please bear with me if I seem stupid. The script you originally posted references some [presumably] off-site JavaScript. It sounds to me as though you want to (instead) include that JavaScript directly in your page. Oh, and whoever wrote the script originally included some sort of copy control to keep you from doing this. Does that pretty much sum it up?
do you have access to your error logs? outputting a blank page usually means there's an issue with headers for CGI scripts, it's possible you're putting the code somewhere it's not meant to go, or something in the CGI code is causing an error based on it. Hard to really diagnose without knowing more
If you're trying to put this on a proxy that uses JMarshall's cgi script, simply insert the javascript into the $INCLUDE_FILE html file that is in the directory. You don't need to add it to the CGI proxy script.