Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:56

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


Poster: thrive
Dated: Tuesday November 30 2004 - 19:05:33 GMT

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");

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


Poster: John
Dated: Tuesday November 30 2004 - 20:44:22 GMT

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;");

That helped a bit


Poster: thrive
Dated: Wednesday December 1 2004 - 19:23:12 GMT

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.


Poster: kevin3442
Dated: Saturday December 4 2004 - 5:41:43 GMT

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

2nd use of a semi-colon???


Poster: Cereval
Dated: Friday February 3 2006 - 5:13:31 GMT

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.


Poster: Migru
Dated: Friday February 3 2006 - 13:48:00 GMT

sorry - wrong entry