Menu Action and URL Parsing

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
shannonlal
Beginner
Beginner
Posts: 1
Joined: Tue Jun 05, 2007 7:00 pm

Menu Action and URL Parsing

Post by shannonlal »

We are building our menu system and a couple of the menu actions require a url in the following format:

with(milonic=new menuname("Reports")){
style=menuStyle;
aI("text=Role Report;url=/actions/reports/viewReport.do?report=Role&userId=002;");
}

We are getting a problem in that we get what seems to be a parse error because of the '&.' I can resolve the parse error by replacing the '&' with the '&amp'; however, the url that user has access to is as follows:

with(milonic=new menuname("Reports")){
style=menuStyle;
aI("text=Role Report;url=/actions/reports/viewReport.do?report=Role&ampuserId=002;");
}


The url in the HTML page

=/actions/reports/viewReport.do?report=Role&amp

It ignores everything after the &amp.

I can post a more detailed example if required, but I thought I would check to see if there is a simple fix for this.

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

Post by Andy »

Which version of the menu are you using?

I just tested with the latest and it works fine.

Normally, if you include = and ; inside the url you need to enclose the url inside back quotes but you are having trouble with & so I don't think it applies in this case.

Do you have a URL that we can see?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You also left out the ; in the &. That's another reason the ` that Andy suggested are needed.
John
Post Reply