Passing parameters within URL

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
BigJohnson
Advanced
Advanced
Posts: 14
Joined: Sat May 01, 2004 7:55 pm

Passing parameters within URL

Post by BigJohnson »

Hi
I'm attempting to pass a parameter within a menu URl which in inself seems easy enough.

aI("text=Document Masters;url=../../prosys/admin/pro_Document_List.asp?strMenuPage=1;");


However, I cannot seem to call it from and ASP page, ie
<%=Request("strMenuPage")%>

Does anyone have any ideas?

Thanks.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

This should work:

aI("text=Document Masters;url=../../prosys/admin/pro_Document_List.asp?strMenuPage=<%=Request("strMenuPage")%>;");

Provided the variable strMenuPage is set and your menu_data.js page has been renamed to menu_data.asp.

Hope this helps,
Andy
BigJohnson
Advanced
Advanced
Posts: 14
Joined: Sat May 01, 2004 7:55 pm

Post by BigJohnson »

Hi

The parameter that I'm attempting to pass is actually fix, ie "1"

aI("text=Document Masters;url=../../prosys/admin/pro_Document_List.asp?strMenuPage=1;");

The problem that I seem to be having is that my asp page that is calling the parameter doesn't seem to recognise the variable.

<% IF Request("strMenuPage") = "1" Then......

Thanks.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Can you echo the value to the page?

Something like response.write(request("strMenuPage")) - it's a been a while since i played with ASP so the above is problably completely wrong.

This does sound like either a server or an ASP issue.

Can you get it work if you call the page directly by typing the URL into the address bar?
Post Reply