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:39
Can't get frames to work - Please Help..!
Poster: tavalanche
Dated: Monday March 12 2007 - 22:02:04 GMT
Hello;
It's me again. You probably remember me from the topic regarding getting the DHTML menus to work over java applets. I simply did like you suggested & put up a flash marquee instead, which fixed the problem. Now I have a new problem though. This one is very simple; rest assured.
I basically can't get my DHTML menu to open in another frame - plain-&-simple. I followed the directions posted in the beginner's guide section, but still can't get it to work. I know I'm just not doing something incredibly simple. I basically have a frameset that consists of 2 frames; an upper frame (topframe), and a lower frame (mainframe). My menu is in the top frame, and I simply want it to open pages via my menu in the bottom frame.
I've posted my example here (http://www.pike.com/frameset_fix/framesets/home_fs.php) for you to take a look at. The 2 frames (top & bottom frames) pages are as follows respectively:
http://www.pike.com/frameset_fix/frames ... op/top.php (top)
http://www.pike.com/frameset_fix/default.php (bottom)
The 2 examples I have set-up are under the "Pike Info >> Tax Forms >> Federal W4 (2007)" sublink, and the "Pike Info >> Tax Alabama Witholding Form>> sublink. For some odd reason, it keep opening these pages (that should open in the 'target=mainframe' frame) in new, pop-up windows - as if I was using "_new" or "_blank" for my targets.
All of my other, relevant Milonic-related files can be found here:
http://www.pike.com/frameset_fix/tab_ti ... ta-home.js
http://www.pike.com/frameset_fix/tab_ti ... ta-home.js
http://www.pike.com/frameset_fix/milonic_src.js
http://www.pike.com/frameset_fix/mmenudom.js
http://www.pike.com/frameset_fix/ucs.js
http://www.pike.com/frameset_fix/urchin.js
Help me PLEASE!!!! Thanx-so-much..
Oh, and I'm calling my menus via the *.js files now too, like you suggested. ( o:
Poster: Ruth
Dated: Tuesday March 13 2007 - 5:31:06 GMT
Hi,
It's not possible to have a dhtml menu, or any other object for that matter, span frames, so you can't code all the menu on the top frame and have the submenus 'drop' over the bottom one. You will need to use the frames menu that comes in the download, in the extras folder.
In order to get them to work you need a file called mm_navframe.js which is in that folder, and you need to code the milonic files and the main menu(s) in the top frame plus that mm_navframe.js file, and then you need to code the milonic files and the submenu files in the body frame where you want the subs to open. This means you have to have the main menu code on any page that is in the top frame, and the submenu codes on any page that is in the bottom frame. The frames example in the download lays everything out for you. You need to look at the top or side main menus to see how the aI strings are done because it requires more than just what you usually put in them. Also, you'll need the target= part for any link in the menus, main or subs to have them open in the bottom part, or a new page. Keep in mind, if you load any page into the body that does not contain the codes for the submenus you will get no submenus.
The frames example is also here
http://www.milonic.com/frames/
The other option if you don't want to do the more involved setup for frames is to use an iframe, then you can use the regular menu because it will drop over an iframe. [except in Opera, unless the newer versions of it have been fix. for some reason it treats iframes as i they were a regular frameset, which iframes are not, they are part of the existing page, not a separate frame.]
Ruth
Got it..!
Poster: tavalanche
Dated: Tuesday March 13 2007 - 14:46:07 GMT
Ruth; you are the TRUTH!!! Thanx-so-much - I'm all Set!!
- Tav