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

Frames and DHTML menu : Page not found error problem


Poster: sgmuser
Dated: Tuesday August 15 2006 - 3:09:24 BST

Iam using Collapse style menu (Collapse_date.js,milonic_src.js, mmenudom.js,mmenuns4.js)

I am using them in left/top/center frames based html page. The Left frame has this collapse menu. The objective is when the user clicks on the menu item, the target page should open in the center frame (i put target="main" instead of the default).

It works fine. When I click on an a menu header, the menu items shows up below the header. Again click on the same menu header, it shrinks back. When i click on one of the menu items, the target page opens in the center frame. Very good. Thats what i need.

But when I click on the same Menu header again to close/shrink it up after clicking on one of the menu item, it returns a page not found error in the center.

Then only change i made is the target changed to "main" in mmenudom.js file.

Any help would be appreciated.


Poster: Ruth
Dated: Tuesday August 15 2006 - 6:01:10 BST

Hello,

We need to see a page and you need to download the menu again and use the non-edited mmenudom.js file. Milonic is a protected product not open source. You can open the page in the main section using the aI string since the program already has codes for opening pages in windows, frames, iframes. You'd do it just like you would with an html link target=whatever;


Ruth


Poster: Ruth
Dated: Tuesday August 15 2006 - 6:19:01 BST

:oops: I forgot to give you an example. I used the original downloaded collapse_data.js file, created a frameset as you laid it out with the names as you have them. Then I created a page that just said page to test load frame and saved it as page1. htm. Finally I coded the National item, in the submenu for News, as follows:

Code:
aI("text=National;url=page1.htm;target=main;");


When you click News, it's submenu opens down, when you click National, page1.htm loads in the main frame and when you click News again the submenu closes up.

Ruth

Frames and DHTML menu : Page not found error problem


Poster: sgmuser
Dated: Thursday August 17 2006 - 4:13:24 BST

Thanks! I solved it already with some help posted in the forum. I should say the code was one of the best of OO programming! Great stuff. 8).
Thanks again anyway.