PDA

View Full Version : Pull-Down Menu Frame Target


timorgan
02-23-2000, 11:38 PM
Hi!

I am making a site involving top (navigation) and bottom (body) frames, and in the top frame there is a pull-down menu. I was wondering where in the pull-down menu code do I put the target code? I have tried many things, but nothing seems to work. PLEASE let me know! ANY information would be greatly appreciated! Thanks!

Drew
02-23-2000, 11:52 PM
Credit to mtv.com ... got it from there, as I remembered they did it.[nbsp][nbsp]I think this should do it...


<FORM METHOD=&quot;GET&quot; ACTION=&quot;POST&quot; NAME=&quot;Shows&quot;>
[nbsp][nbsp][nbsp][nbsp][nbsp]<SELECT NAME=&quot;seeThat&quot; SIZE=1 OnChange=&quot;frameNavig(document.Shows.seeThat.options[document.Shows.seeThat.selectedIndex].value)&quot;>
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]<OPTION VALUE=&quot;address&quot;>Blah Blah
[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]...
[nbsp][nbsp][nbsp][nbsp][nbsp]</SELECT>
</FORM>


_/ Drew /_

timorgan
02-24-2000, 12:20 AM
Thanks! But, that doesn't seem to work.

The specific problem is that I have the drop-down menus, but they don't seem to want to open up in the bottom frame. I have no idea why they are doing this. I need to know how to target them to open in the bottom frame, not the top frame.

Neil128
02-24-2000, 03:28 AM
well the MTV example used javascript, but you could use a simple cgi redirect such as go.cgi, which there is pretty much an equivalent of on every server.[nbsp][nbsp]
[nbsp][nbsp]But with javascript (which I dont use much anymore, im an ASP/VB script cult member now) you should be able to do something with your frame names, in the javascript, like document.framename.location.href=http://bla.bla.bla[nbsp][nbsp]or maybe it is just framename.location.href=http://bla.bla.bla[nbsp][nbsp]not sure of the exact syntax but I think I at least pointed you in the right direction.

Justin
02-24-2000, 09:50 AM
</font><font face="Courier" size="3"><form action=&quot;http://blah&quot; method=&quot;whatever&quot; target=&quot;name_of_target_frame&quot;></font><font face="Verdana, Arial" size="2">

Hope this helps.

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support

timorgan
02-24-2000, 03:15 PM
Thanks everyone for your help! But, none of those seem to work. I have put up a test page so that it'll be easier for you to see the problem I have run into, and am stumped!

http://timorgan.com/test/index.html

The first pull-down menu does what I would like it to, that is, open up the documents into the main body frame. But, for the second pull-down menu, I would like it to open over both frames, taking up the whole window.

Please help if you can! I appreciate all information! THANKS VERY MUCH!

Brian
02-24-2000, 03:19 PM
Do you mean you would like it to break out of the frameset? If that is what you want?

-Brian
[This message has been edited by Brian (edited 02-24-00@3:23 pm)]

timorgan
02-24-2000, 03:21 PM
Yes, I would like the second drop-down to take over the whole window, and override the frameset.

Brian
02-24-2000, 03:25 PM
You will need to make the target = _self. This will look like:


<form action=&quot;http://blah&quot; method=&quot;whatever&quot; target=&quot;_self&quot;>


For future reference here is a list of common targets:

_self[nbsp][nbsp][nbsp][nbsp] :[nbsp][nbsp]show in current frame
_parent[nbsp][nbsp] :[nbsp][nbsp]show in parent frame
_top[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]:[nbsp][nbsp]show in top-most frame
_blank[nbsp][nbsp][nbsp][nbsp]:[nbsp][nbsp]show in new unnamed top-level window

If you need further assistance let us know.

-Brian

timorgan
02-24-2000, 03:35 PM
Hi Brian, thanks so much for your help, but that still doesn't seem to work! It's getting quite frustrating!

I am not sure what I am doing wrong. I have a javascript in there right now, which makes the first pull-down do what I want. But, the second pull-down isn't doing what I'd like, even when I put in the target feature. If you could look at the source of that page (http://timorgan.com/test/index.html) and let me know what exactly to do, that would be amazing!

Thanks!

Brian
02-24-2000, 04:02 PM
I am not familiar with the javascript you are using for that pull down menu. I will look further into it and see what I can come up with. In the time being I might suggest you do a simple pull down menu.

You can do this @ http://www.aota.net/Pre-Installed_Scripts/redirectionmenus.php3

I will get back to you in this post if I can find a better solution.

-Brian

Dan Kaplan
02-24-2000, 04:53 PM
If you're trying to combine a pull-down menu with a target=&quot;_top&quot; (I think that's what you mean by breaking out of the frame), I've yet to find a way to do that...[nbsp][nbsp]:([nbsp][nbsp]As best I can tell, it's a limitation of JavaScript.[nbsp][nbsp]I'd love to be corrected.

Dungeon

Justin
02-24-2000, 05:11 PM
I didn't realize you meant a JavaScript redirection menu - I would take Brian's suggestion, using the AOTA Preinstalled redirection script - only adding a 'target=_top' to the <form> tag.

Hope this helps.

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support

timorgan
02-24-2000, 05:45 PM
Hi Everyone! I've found a solution to the problem thanks to The Menu Factory! http://www.jwp.bc.ca/saulm/driver8/fac.htm

You can specify everything you want there (INCLUDING which frame), and it'll make it for you! It works perfectly!

Thanks for everyone's help on this issue!!!! It's very much appreciated!