Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:55

Pagematch Issue


Poster: srinivas_20sm
Dated: Monday September 4 2006 - 10:17:43 BST

Hi All,

I am facing a wired problem in my app.
I am using Milonic menu as my menu.

I have written code as per the instruction in website.
the below is the code for main menu
Code:

with(milonic=new menuname("Main Menu")){
                         style=DynStyle;
                         alwaysvisible=1;
                         orientation="horizontal";
                         overfilter="";
                         position="relative";
                         aI("text=Company Home;url=javascript:OpenSubWindows('home');pagematch=/Wrassp/home.do?");
                         aI("text=Portal Home;url=javascript:OpenSubWindows('home');");
                         aI("text=Case Studies;url=javascript:OpenSubWindows('casestudy');");
                         aI("text=Customer Testimonial;url=javascript:OpenSubWindows('testimonials');");
                         aI("text=Training & Certification;url=javascript:OpenSubWindows('training');");
                         aI("text=Tool Box;showmenu=toolbox;url=javascript:OpenSubWindows('home');");
                         aI("text=Logout;url=javascript:OpenSubWindows('logout');");
                      }
                      drawMenus();

I have javascript function OpenSubWindows() which takes in string as a parameter and then in the function depending on the string i do form submition to create some action. depending on the action the page is refreshed with some content which is basically a jsp page which makes use of tiles definition, for rendering the header, footer & body separately into a single page. now if i use pagematch property to highlight the menu on which i clicked on, it won't work... the menu still remains normal as usual. can anybody help me in this regards. it's very urgent. I see that the in the URL it's says /Wrassp/home.do? which is similar to what i have given in the pagematch property, but still i don't get anything :(

the below is the style sheet code i am using...

Code:
var imagePath = "/Wrassp/images/arrow.gif"
var imagePage = "/Wrassp/images/menu_bg.gif"
with(menuStyle=new mm_style()){
   styleid=4;
   bordercolor="#2A719F";
   borderstyle="solid";
   borderwidth=1;
   fontfamily="Tahoma, Verdana, Arial";
   fontsize="11px";
   fontstyle="normal";
   headerbgcolor="#ffffff";
   headercolor="#000000";
   offbgcolor="#ccd4d9";
   offcolor="#000000";
   onbgcolor="#ffffff";
   oncolor="#000000";
   onitalic=0;
   //outfilter="randomdissolve(duration=0.3)";
   overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
   padding=0;
   pagebgcolor="#8FC9F0";
   pagecolor="#d4f51e";
   pageimage=imagePage;
   separatorcolor="#2A719F";
   separatorpadding=0;
   separatorsize=1;
   separatorwidth="100%";
   subimage=imagePath;
   subimagepadding=1;
}


Anybody please help me out to sort out this issue please. advance thanks.

Regards
Srinivas S.M