Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:34
Menu Action and URL Parsing
Poster: shannonlal
Dated: Tuesday June 5 2007 - 19:10:25 BST
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 '&'; 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&userId=002;");
}
The url in the HTML page
=/actions/reports/viewReport.do?report=Role&
It ignores everything after the &.
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
Poster: Andy
Dated: Wednesday June 6 2007 - 11:22:47 BST
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?