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");
";" in URL and I can't escape it.
Re: ";" in URL and I can't escape it.
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
That helped a bit
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.
can I use javascript to do a string replace in the middle of the ai element? it's a long shot.
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:
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
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;");
Hope that helps,
Kevin
2nd use of a semi-colon???
How come the second back quotes trick doesn't work?
EDIT: Fixed ... I wrapped the whole url in back quotes and it worked.
My output ends after Drain ... why is this?aI("text=Last
Trailer;url=/cgi-bin/emAlbum.cgi?c=download`;`p=Watch/Circling The Drain`;`f=ctd_last_trailer.wmv;")
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.