Hi, I'm new to this list, I'm more of an ASP developer than Javascript,
but I am working on documentation for some asp/javascript code that was
not written by me...and I have a piece of code that is puzzling to me...I
understand how it all works, but when it get's to the document.write( v)
part, nothing is written to the document...if I put in a
document.write("test") before this, it works, but if I place this test
snippet of code after, it doesn't write anything either...can anyone take
a look at this and tell me why it does not write anything?
<SCRIPT LANGUAGE="JavaScript1.2">
var ORDER= "";
var SERVER= "";
var CONTENTGROUP= "Content";
// You may customize the values of the above three variables to suit your
website. Simply insert your own values between the double-quotes.
// The lines below show some examples:
// var ORDER= "D2,Business to Consumer,Pocket FM Radio,Audio
Products,10,499.99;";
// var SERVER= "Name of this web server";
// var CONTENTGROUP = "Content group name for this page";
v = '<' + 'SCRIPT SRC="';
v+
'http://info.designgroup.com/S005-00-7-12-60378-17047/scripts/wttagv2.cgi?sid=005-00-7-12-60378-17047&siteID=17047&tagver=2&tz=-500&
ed=enterprise&button
&';
v+= 'order=' + escape(ORDER) + '&';
v+= 'server=' + escape(SERVER) + '&';
v+= 'url=' + escape(window.document.URL) + '&';
v+= 'ref=' + escape(window.document.referrer) + '&';
v+= 'title=' + escape(document.title) + '&';
v+= '"' + '>' + '<' + '/' + 'SCRIPT' + '>';
document.write( v);
</SCRIPT>
Thanks,
Ben Lew