Frames and DHTML menu : Page not found error problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sgmuser
Beginner
Beginner
Posts: 8
Joined: Tue Aug 15, 2006 2:47 am

Frames and DHTML menu : Page not found error problem

Post by sgmuser »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

: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: Select all

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
sgmuser
Beginner
Beginner
Posts: 8
Joined: Tue Aug 15, 2006 2:47 am

Frames and DHTML menu : Page not found error problem

Post by sgmuser »

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.
Post Reply