View Full Version : problem with affiliate code syntax

02-01-2007, 09:34 PM

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.


I want the link passed through the browser to be;


but the XML will not accept:


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

Any help would be apreciated


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?

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?

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