...

View Full Version : problem with affiliate code syntax



playful
02-01-2007, 09:34 PM
Hello,

I am looking to create a function that will prefix a given URL with my affiliate code using javescript, and send the surfer to the affiliate link and URL combined

I am forced to do it in js because the affiliate link is not XML compliant.


Example:

I want the link passed through the browser to be;

http://blah.com/refferer.cgi?setcookie&URL=http://moveon.com

but the XML will not accept:

http://blah.com?setcookie&URL=

So I will need a funtion to add this to the URL

Any help would be apreciated

TIA

playful
02-01-2007, 10:25 PM
Oops! Forgot to escape the &

But when I use & it will not set a cookie. So back to the original question, can I add this "prefix" using JavaScript?

Arbitrator
02-02-2007, 12:03 AM
but the XML will not accept:

http://blah.com?setcookie&URL=Is this even a valid URL with the ampersand escaped? Maybe thatís why it wonít work?

playful
02-02-2007, 12:11 AM
This is an example link, but the link I am using is valid. I know the link will not work with the ampersand escaped.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum