Hi
(Hergio: Now I've searched this forum and Google for quite a while )
My objective is to pass several words after the URL like this:
addmenu(menu=["submenu",
,,185,1,"",style2,,"left",effect,,,,,,,,,,,,
,"A nice page","/subfiles/sub/mypage.asp?sendParam=Keyword1 Keyword2",,"Keyword1 keyword2",1
])
I've tried to use javascript escape(), something like
mypage.asp?sendParam=escape('Keyword1 Keyword2') or something, but it doesn't work. I can't find the correct syntax for some reason.. well, it actually worked once when I used it on the first pull-down menu, but not for sub-menus that fold out horizontally..
anyone knows..?
Pass a sentence in URL?
You need to escape them yourself before it goes into the menu script. I did this on my site where I wanted something passed, so I did /dir/page.asp?var1=My%20First%20Var and this worked...basically its if you have any spaces or quotes in the url, whether they are in the query string or in a directory name (i.e /Dir One/ or /Sue'sDir/ cuz Microsoft allows this I know), you need to escape it before it goes into the menu. You could do this by saying
escapedquery = escape("My First Var");
and then doing ..,"page.asp?var1=" + escapedquery + ",...
But thats the problem I think.
escapedquery = escape("My First Var");
and then doing ..,"page.asp?var1=" + escapedquery + ",...
But thats the problem I think.
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Software Engineer
"Helping to make the menu better, one at a time."
Can I just butt in here and make a sugestion?
. . . . . . .Well, I'm going to anyway
Version 3.0 has some pretty poor text handling that uses lots of escapes in the text it generates. Once you start adding more escape characters to it, it does get a little messy.
Version 5.0 on the other hand should be able to handle the text much more efficiently and including escape characters shouldn't pose too much of a problem.
Cheers
Andy
. . . . . . .Well, I'm going to anyway
Version 3.0 has some pretty poor text handling that uses lots of escapes in the text it generates. Once you start adding more escape characters to it, it does get a little messy.
Version 5.0 on the other hand should be able to handle the text much more efficiently and including escape characters shouldn't pose too much of a problem.
Cheers
Andy