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

A couple of Problems


Poster: Izgard
Dated: Tuesday May 1 2007 - 1:58:42 BST

I am using the frames version (1.7). I have it all functioning except for
these 2 problems. All my menu data is embeded into the page wih script
tags, except for the style which are in a css style sheet, using the onclass and offclass values.

1. The text in each menu item contains an underline, I cannot work out
how to remove it.

2. A menu item I have is quite low on the page and when it displays the
submenus they go of the bottom of the page, causing the content frame to
display scroll bars. In the examples the sub menus seem to reposition
themselves to avoid doing this and/or display scroll bars. If have used the
overflow='scroll'; with no success.

I cannot supply a link to this sorry.

P.S. I am still evaluating this product, so I do not have licenced version.

RIGHT SIDE MENU

Code:
<SCRIPT LANGUAGE="JavaScript">
   _menuCloseDelay=500;
   _menuOpenDelay=150;
   _subOffsetTop=2;
   _subOffsetLeft=-2;
   with(mainMenuStyle=new mm_style()){
      
   }
   with(milonic=new menuname('mainMenu')){
      style=mainMenuStyle;
      left=0;
      top=100;
      overflow='scroll';
      alwaysvisible=1;
      itemwidth=127;
      aI('text=Main Menu;showmenu=Main Menu;target=main;onfunction=openSubmenu();
offfunction=closeSubmenu()');
      aI('text=General Enquiry;url=setupGeneralEnquiry.do?expire=' + Date().toString()
+ '&menutype=crimc;
target=main');
      aI('text=Hearings&Outcomes;showmenu=Hearings&Outcomes;
target=main;onfunction=openSubmenu();offfunction=closeSubmenu()');
      aI('text=Create Court File;showmenu=Create Court File;target=main;
onfunction=openSubmenu();offfunction=closeSubmenu()');
      aI('text=Maintain Court File;showmenu=Maintain Court File;target=main;
onfunction=openSubmenu();offfunction=closeSubmenu()');
      aI('text=Maintain Compliance;showmenu=Maintain Compliance;target=main;
onfunction=openSubmenu();offfunction=closeSubmenu()');
      aI('text=Listings;showmenu=Listings;target=main;
onfunction=openSubmenu();offfunction=closeSubmenu()');
      aI('text=Print Lists;showmenu=Print Lists;target=main;
onfunction=openSubmenu();offfunction=closeSubmenu()');
      aI('text=Print Other Docs;showmenu=Print Other Docs;target=main;
onfunction=openSubmenu();offfunction=closeSubmenu()');
      aI('text=Print Outcome Docs;url=printOutcomeDocuments.do?expire=' + Date().toString() + ';target=main');
      aI('text=Signoff;url=sign_off.jsp?expire='
+ Date().toString() + ';target=main');
   }
   drawMenus();
</SCRIPT>


CONTENT FRAME
Code:
<SCRIPT LANGUAGE="JavaScript">
   _menuCloseDelay=500;
   _menuOpenDelay=150;
   _subOffsetTop=2;
   _subOffsetLeft=-2;
   with(mainMenuStyle=new mm_style()){
      onclass='mainMenucssmouseon';
      offclass='mainMenucssmouseoff';
   }
   with(milonic=new menuname('Main Menu')){
      style=mainMenuStyle;
      overflow="scroll";
      aI('text=Fine Accounting Menu;url=setupGeneralEnquiry.do;target=main;');
      aI('text=Transfer Office;url=transferOffice.do;target=main;');
      aI('text=Change Printer;url=changePrinter.do;target=main;');
      aI('text=Change Password;url=changePassword.do;target=main;');
      aI('text=Browser Manual;url=http://caaintranet/Divisions/ISD/Training/Online training/idmsbrowser/
CRIMC Browser Manual/index.htm;
target=main;');
      aI('text=About;url=javascript:richDialog();target=main;');
}
   with(milonic=new menuname('Hearings&Outcomes')){
      style=mainMenuStyle;
      overflow="scroll";
      aI('text=Add Hearing Outcome;url=selectAddHearingOutcome.do;target=main;');
      aI('text=Add Multiple Adjournment/Transfer;url=selectAddHearingOutcome.do;
target=main;');
      aI('text=Add New Hearing;url=addNewHearing.do;target=main;');
      aI('text=Change Appearance Details;url=selectHearing.do;target=main;');
      aI('text=Change Hearing Outcome;url=changeHearingOutcome.do;target=main;');
      aI('text=Change Old Outcome;url=changeOldOutcome.do;target=main;');
      aI('text=Add Appeal/Rehearing;url=addAppealRehearing.do;target=main;');
      aI('text=Add Notice of Review;url=addNoticeOfReview.do;target=main;');
      aI('text=Add Penalty/Order To Existing Outcome;url=addPenaltyOrderToExistingOutcome.do;target=main;');
      aI('text=Delete Hearing Outcome;url=deleteHearingOutcome.do;target=main;');
      aI('text=Delete Case Event;url=deleteCaseEvent.do;target=main;');
      aI('text=Add Further Hearing Date;url=addFurtherHearingDate.do;target=main;');
}
   with(milonic=new menuname('Create Court File')){
      style=mainMenuStyle;
      overflow="scroll";
      aI('text=Add Police Complaint/Information;url=addPoliceComplaintInformation.do;
target=main;');
      aI('text=Add Complaint/Information;url=addComplaintInformation.do;
target=main;');
      aI('text=Add Application;url=addApplication.do;target=main;');
      aI('text=Add Transferred Case;url=addTransferredCaseFile.do;target=main;');
      aI('text=Add Committed Case;url=addCommittedCaseFile.do;target=main;');
      aI('text=Add Interstate Warrant;url=addInterstateWarrant.do;target=main;');
      aI('text=Add Interstate Certificate;url=addInterstateCertificate.do;target=main;');
      aI('text=Add Information for Issue of a Provisional Warrant;
url=addProvisionalWarrant.do;target=main;');
      aI('text=Add Breach Bond/Order File;url=addBreachBondOrder.do;target=main;');
      aI('text=Add Application to Vary Order;url=addApplicationVaryOrder.do;target=main;');
      aI('text=Add FPU Application;url=addFpuApplicationPenalty.do;
target=main;');
}
   with(milonic=new menuname('Maintain Court File')){
      style=mainMenuStyle;
      overflow="scroll";
      aI('text=Correct Charge/Application;url=correctChargeApplication.do;
target=main;');
      aI('text=Update Full Text of Charge;url=updateFullTextOfCharge.do;
target=main;');
      aI('text=Correct Case Details;url=correctCaseDetails.do;
target=main;');
      aI('text=Correct Interstate Offence Details;url=correctInterstateOffence.do;
target=main;');
      aI('text=Change Client Current Address;url=changeClientCurrentAddress.do;target=main;');
      aI('text=Change Case Participant;url=changeCaseParticipant.do;target=main;');
      aI('text=Change Court Client;url=changeCourtClient.do;target=main;');
      aI('text=Add Case Participant;url=addCaseParticipant.do;target=main;');
      aI('text=|Remove Case Participant;url=removeCaseParticipant.do;target=main;');
      aI('text=|Maintain Party Relationship;url=updateRelatedParties.do;target=main;');
      aI('text=|Relate Family Conference File;url=createFileRelationship.do;target=main;');
      aI('text=|Create File Relationship;url=createFileRelationship.do;target=main;');
      aI('text=|Delete File Relationship;url=deleteFileRelationship.do;target=main;');
      aI('text=|Merge Case Participant;url=mergeCaseParticipant.do;target=main;');
      aI('text=|Split Case Participant;url=splitCaseParticipant.do;target=main;');
      aI('text=|Create Consolidated Case;url=createConsolidatedCase.do;target=main;');
      aI('text=|Maintain Coordinator;url=maintainCoordinator.do;target=main;');
}
   with(milonic=new menuname('Maintain Compliance')){
      style=mainMenuStyle;
      overflow="scroll";
      aI('text=|Record Condition Compliance;url=selectBondOutcome.do;target=main;');
      aI('text=|Record Undertaking Compliance;url=selectBondOutcome.do;target=main;');
}
   with(milonic=new menuname('Listings')){
      style=mainMenuStyle;
      overflow="scroll";
      aI('text=|Enquire Daily Case List;url=selectCriminalList.do;target=main;');
      aI('text=|Allocate Files to Courtrooms;url=selectCriminalList.do;target=main;');
      aI('text=|Allocate All Actions;url=selectCriminalList.do;target=main;');
      aI('text=|Update Timeslot/Judicial Officer/Text;url=selectCriminalList.do;target=main;');
      aI('text=|Add Representation Details;url=selectCaseParticipantHearing.do;target=main;');
}
   with(milonic=new menuname('Print Lists')){
      style=mainMenuStyle;
      overflow="scroll";
      aI('text=|Print Courtroom Allocation List;url=printCriminalList.do;target=main;');
      aI('text=|Print Daily Case List;url=printCriminalList.do;target=main;');
      aI('text=|Print Alpha Case List;url=printCriminalList.do;target=main;');
      aI('text=|Print Published Case List;url=printCriminalList.do;target=main;');
      aI('text=|Print Criminal List Summary;url=printCriminalList.do;target=main;');
      aI('text=|Print Arraignment List;url=printCriminalList.do;target=main;');
      aI('text=|Print Duplicate Names Report;url=printCriminalList.do;target=main;');
      aI('text=|Print State Duplicate Names;url=printCriminalList.do;target=main;');
      aI('text=|Print Weekly Conference List;url=printCriminalList.do;target=main;');
      aI('text=|Print Calendar Page;url=printCalendarPage.do;target=main;');
}
   with(milonic=new menuname('Print Other Docs')){
      style=mainMenuStyle;
      overflow="scroll";
      aI('text=|Print Header Slip;url=printHeaderSlip.do;target=main;');
      aI('text=|Print Report Prisoner Tried;url=printReportPrisonerTried.do;target=main;');
      aI('text=|Reprint Hearing Outcome;url=reprintHearingOutcome.do;target=main;');
      aI('text=|Print Committal/Transfer Papers;url=printCommittalTransferPapers.do;target=main;');
      aI('text=|Print Generic Document;url=printGenericDocument.do;target=main;');
      aI('text=|Print Notice to Defendant as to Penalty;url=printNoticeToDefendantAsToPenalty.do;target=main;');
      aI('text=|Print Certificate of Record;url=printCertificateOfRecord.do;target=main;');
      aI('text=|Print Police Referral;url=printPoliceReferral.do;target=main;');
      aI('text=|Print Undertaking Final Notice;url=printUndertakingFinalNotice.do;target=main;');
      aI('text=|Print CPO Sheriff Service Request;url=printCPOSheriffServiceRequest.do;target=main;');
      aI('text=|Print Family Conference/Care Notices;url=printFamilyConfCareNotices.do;target=main;');
}
   drawMenus();
</SCRIPT>

STYLE SHEET
Code:
.mainMenucssmouseon {
    background-color:#FFCC00;
      color:#990000;
      font-style:normal;
      font-weight:normal;
      font-family:'Arial,Helvetica,Sans-Serif';
      font-size:11px;
      text-align:left;
      border-style:solid;
      border-width:1px;
      border-color:white;
      margin:0px;
      padding:2px;
}

.mainMenucssmouseoff {
    background-color:#990000;
      color:#FFCC00;
      font-style:normal;
      font-weight:bold;
      font-family:'Arial,Helvetica,Sans-Serif';
      font-size:11px;
      text-align:left;
      border-style:solid;
      border-width:1px;
      border-color:white;
      margin:0px;
      padding:2px;

}


Poster: Ruth
Dated: Tuesday May 1 2007 - 5:47:24 BST

Hi,

Since you are using css, for some reason that seems to overcome the menu decoration= so I have found that I have to put it in the css, add text-decoration:none; to both the classes.

As to the other, I'd be glad to test it, but I need the html, so I'd need the frames layout you have so I can set it up, and also which browser is doing this. You could also try adding ignoreCollisions=false; to the top part of the menu after the subOffset.

Also, make sure that you have the newest version of the menu. I don't know when you downloaded for evaluation, but it has been updated recently. The newest version is 5.772

Ruth


Poster: Izgard
Dated: Tuesday May 1 2007 - 5:57:59 BST

Thanks the decoration property worked, however the ignore collisions did not help.

Is there anyway I can email a zip file to you. Rather than copying and pasting a heap of file content?


Poster: Ruth
Dated: Tuesday May 1 2007 - 7:26:34 BST

Hi,

All I really need is the frames layout since that will give me the page names. Or do I need the menu frame page setup because of the menu positioning? If I can just do it from the layout I can set something up to test that problem, but I still need to know which browser.

If I have to have the complete setup, then I'll set a time with you for checking for my email address, so I can remove it as soon as you have it. I don't like having it on forums since that ends up getting me spam which I don't get now :)

Ruth


Poster: Izgard
Dated: Tuesday May 1 2007 - 7:39:09 BST

Well there are a lot of other files, javascript files, images, style sheets etc. I would need to modify it, so u dont get heaps of errors, and formatting problems. Would be lot easier to send u a zip file. Can you just email me directly and I will reply to you with an attachment.


Poster: Ruth
Dated: Tuesday May 1 2007 - 17:34:56 BST

Hi,

The problem is two-fold. One, your using frames :lol: , two the position of your main menu and therefore the position of the submenus on the other frame which in effect is a whole new page.

There are a few things you can try and see which you like

1. Move the main menu up to top=50; then in the submenus, the ones that open too far down and cause the scroll bar, put top="offset=-whatever number need to shift it up";

2. Leave the main menu where it is and increase the number of pixels in the top="offset=- number of pixels to shift it up";

3. in each submenu that causes the scroll bar, set menuheight=whatever height you want; itemheight=whatever height you need the items to be; and overflow="scroll";

The third option will let you set the height of the menu to be less than the usual height and the overflow="scroll"; then puts in the scroll bar.

Many of these issues are to do with frames. If you were using an iframe, the problem wouldn't occur because since the iframe is actually on the same page as the main menu, the automatic collision detection in the menu would come into play and the submenu would shift up.

Ruth


Poster: Izgard
Dated: Wednesday May 2 2007 - 0:50:00 BST

Thanks for looking at that for me. I think I will have to look at Iframes, as the menu is dyanmic, built by java code a the back end, so trying to determine the best positions for sub menus would be a mess.