PDA

View Full Version : Java Script and UCJ....


Pinox
04-12-2002, 08:31 AM
Okie lets say i have this code:<br /><br />&lt;SCxxT LANGUAGE="JavaScrxxpt" SRC="http://xxxx.xxxx.com/links/output.php?linkformat=5&category=general&font=verdana&fontsize=2"&gt;&lt;/SCxxpT&gt;<br /><br />or:<br /><br />&lt;sxxpt src="http://www.xxxx.com/gallery/_hardcore_part1.js"&gt;&lt;/scxxt&gt;<br />&lt;/td&gt;<br />&lt;td&gt;<br />&lt;scxxt&gt;<br /><br />Both almost the same but what im trying is that i would use it with UCJ..<br />so that i got this: /cgi-bin/ucj/c.cgi?url= JAVASCXXT &p=65&link=Link<br /><br />Or: /cgi-bin/ucj/c.cgi?p=70&url= JAVASCXXT.<br /><br />i tried to put the ahref before the code, i tried to put in the script itself.. nothing works... <br />Anyone have any idea how i get this to work??

keyman
04-12-2002, 09:54 AM
I've never used UCJ-C, but remember that c.cgi is just responsible for emitting a redirection to a trade, else forward the client to the given URL.<br /><br />This could easily be a client variable in javascript, as long as the variable is evaluated before c.cgi is executed.<br /><br />So in theory the following would work.<br />document.write("&lt;A HREF=/cgi-bin/ucj/c.cgi?url=" + random_url + "&p=65&link=Link&gt;Click Me&lt;/A&gt;");