PDA

View Full Version : Use of "&" in links is screwing up clickTAG


pmarquis
04-23-2007, 04:14 PM
I see that the "&" is a character used in creating multiple links for a single banner, "&clickTAG2=" etc.

However, the links I'm referring to are using "&" in their code for some dynamic server info. This is causing some confusion in the server and giving a javascript error because it can't make use of anything after the first "&" in the dynamic link.

Has anybody found an alternative to using "&" in URL strings? For example, is there another way to write this:

dummy.swf?clickTAG=http://www.dummy.com/event?t=s&o=2&a=4&n=67&s=1&u=[user]&p=1&sid=dummy_gen

Currently all that the server is seeing is:

dummy.swf?clickTAG=http://www.dummy.com/event?t=s

There has got to be another way, because there's just too much value to using strings in URL's, especially wrt ad banners. It's got to be an easy answer, just one that I can't seem to pin down.

Many thanks

atomic
04-23-2007, 04:19 PM
Maybe this...

http://www.milonic.com/mfa/2004-August/problem-with-in-a-url-string.html

pmarquis
04-23-2007, 04:40 PM
So according to this link, the ` is what is needed to separate out the URL strings from each other.

dummy.swf?clickTAG=http://www.dummy.com/event?t=s&o=2&a=4&n=67&s=1&u=[user]&p=1&sid=dummy_gen&clickTAG2=http...

Becomes:
dummy.swf?`clickTAG=http://www.dummy.com/event?t=s&o=2&a=4&n=67&s=1&u=[user]&p=1&sid=dummy_gen`&clickTAG2=`http...`

Well, trying this, the link is no longer available in its entirety. I tried enclosing the clickTAG portion in the ` as well, to no avail. Thanks for the suggestion, perhaps I'm getting the syntax messed up.

CyanBlue
04-23-2007, 04:49 PM
See if %3F(?), %26(&) and %3D(=) works for you...
dummy.swf?clickTAG=http://www.dummy.com/event%3Ft%3Ds%26o%3D2%26a%3D4%26n%3D67%26s%3D1%26u %3D[user]%26p%3D1%26sid%3Ddummy_gen&clickTAG2=http...

pmarquis
04-23-2007, 05:21 PM
That did it! Thanks man!

CyanBlue
04-24-2007, 01:54 PM
Glad to be of your service... :)