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

Frames: Load Javascript on every HTML page?


Poster: MBreve
Dated: Saturday April 2 2005 - 22:59:13 BST

I finally got the menu working with frames the way I want.

But as soon as this was solved I bumped into a major problem I hadn't even thought about.

In a header/body style framework the Javascript calls must be in the body.htm code in order to let the menu work properly.

But as soon as I click a link that opens in the body frame, new html code is read into that frame and the menu stops working.

The obvious solution is to enter the Javascript calls in every html page on the server. But with 200+ pages, this is not the desired solution.

So, I either must be overlooking a real easy solution or this type of menu is not suited for frames.

I'm probably doing something wrong but I can't figure this one out...

Marc


Poster: Ruth
Dated: Saturday April 2 2005 - 23:18:14 BST

:( Sorry to bring bad news but you do have to have the menu codes on any page that loads into the body frame for the menu to work. If you don't have them there the menu can't send information to open the submenus because the file is not available.

I know it seems like a lot of work, but once you got the pages coded, and it would be the same code on each page -[copy and paste :?:] then you'd just have to do each new page as you made it.

Sorry I couldn't bring you better news :(

Ruth


Poster: MBreve
Dated: Tuesday April 5 2005 - 6:13:46 BST

Okay, thanks for the confirmation.

I'll try to write a macro in UltraEdit to add the code automatically...