";" in URL and I can't escape it.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
thrive
Beginner
Beginner
Posts: 3
Joined: Thu Mar 04, 2004 3:41 pm

";" in URL and I can't escape it.

Post by thrive »

I am using url rewriting on a few of my domains. The separator for this is a semi-colon. I can't add a "\" before it so I'm looking for suggestions. Thank you.

aI("text=Home;url=/index.jsp;jsessionid=aKREMJc6Inqg;;status=Done;separatorsize=1");
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: ";" in URL and I can't escape it.

Post by John »

No idea if this will work in your situation, but another escape character is the single back quote...

Code: Select all

aI("text=Home;url=/index.jsp`;`jsessionid=aKREMJc6Inqg`;`;status=Done;separatorsize=1;");
John
thrive
Beginner
Beginner
Posts: 3
Joined: Thu Mar 04, 2004 3:41 pm

That helped a bit

Post by thrive »

thanks that worked but I can't put anything in the url itself.

can I use javascript to do a string replace in the middle of the ai element? it's a long shot.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi thrive,

The backquote isn't so much an escape for a single character, in the traditional programming sense. Rather, text in the aI() string that's surrounded with backquotes is treated differently; more literally.

Try this:

Code: Select all

aI("text=Home;url=`/index.jsp;jsessionid=aKREMJc6Inqg;`;status=Done;separatorsize=1;");
I'm assuming you want a ; at the end of your url string, as in your initial example. Also note the ; before the closing " in the aI() string.

Hope that helps,

Kevin
Cereval
Beginner
Beginner
Posts: 1
Joined: Fri Feb 03, 2006 2:22 am

2nd use of a semi-colon???

Post by Cereval »

How come the second back quotes trick doesn't work?
aI("text=Last
Trailer;url=/cgi-bin/emAlbum.cgi?c=download`;`p=Watch/Circling The Drain`;`f=ctd_last_trailer.wmv;")
My output ends after Drain ... why is this?

EDIT: Fixed ... I wrapped the whole url in back quotes and it worked.
Last edited by Cereval on Fri Feb 03, 2006 9:37 pm, edited 1 time in total.
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

sorry - wrong entry
Post Reply