Frames: Load Javascript on every HTML page?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
MBreve
Beginner
Beginner
Posts: 6
Joined: Thu Mar 31, 2005 10:53 pm

Frames: Load Javascript on every HTML page?

Post by MBreve »

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

Post by Ruth »

:( 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
MBreve
Beginner
Beginner
Posts: 6
Joined: Thu Mar 31, 2005 10:53 pm

Post by MBreve »

Okay, thanks for the confirmation.

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