Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    1
    Member #
    8169
    I have a frames page, and my top frame has a drop down list of links. I want these links to open in the other frame, but how do I code this?

    Thanks,
    Justin

  2.  

  3. #2
    Junior Member
    Join Date
    Nov 2004
    Posts
    1
    Member #
    8185
    Quote Originally Posted by JustinB2000X
    I have a frames page, and my top frame has a drop down list of links. I want these links to open in the other frame, but how do I code this?

    Thanks,
    Justin

    First make sure you have a name in the bottom frame tag such as <frame name="bottom" ... > Then in the links simply put target="bottom" in the anchor tag and it will open in the bottom window.

  4. #3
    Junior Member
    Join Date
    Nov 2004
    Location
    Hemet, CA
    Posts
    3
    Member #
    8147
    I believe this is done by adding target="framename" to your link.

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Here, this should change a frame called <frame name="content"> from another page in the frameset.

    Untested, so it may have bugs.
    Code:
    <script language="javascript">
        function changeFrame(selectBox, frameName) {
            parent.frames[frameName].location = selectBox.options[selectBox.selectedIndex].value;
        }
    </script>
    ...
    <select onchange="changeFrame(this, 'content')">
        <option value="page1.htm">Page 1</option>
    </select>

  6. #5
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Crap, nevermind, I misunderstood the question... the sample above is for a dropdown selectBox...

  7. #6
    Junior Member
    Join Date
    Nov 2005
    Location
    kansas
    Posts
    2
    Member #
    11907
    how do you make them anyway?

    I really want to know!

  8. #7
    Junior Member
    Join Date
    Nov 2005
    Posts
    19
    Member #
    11796
    re

    Don't give up yet! I have a code like this somewhere. I just need to find it and I will post it within the next day. The code that I have works like this. The drop down menu is in an iframe on the right of the site. The result of what the user picks will show up in the main site.

    Website Design & Hosting by E-Office Professionals www.eofficeprofessionals.com

    The only stupid question is the one not asked.


    Offer solutions-not criticism.

  9. #8
    Junior Member
    Join Date
    Nov 2005
    Posts
    19
    Member #
    11796
    Here's the code I was telling you about. It's some testing that I was doing for a client's project. If you copy/paste, it works just fine. Just change our links and other data to yours. Good luck!


    Code:
    <form name="jump">
    <select name="menu" style="WIDTH: 177px; background-color:#5e4e4e; font-weight: normal; 
    font-size: 11PX; color: #E0E0E0; BORDER-STYLE: #FFFF00 5PX;" 
    onChange="parent.FRAME.location=document.jump.menu.options[document.jump.menu.selectedIndex]
    
    .value;" 
    value="GO">
    
    <option selected>- - - - - - Check Availability - - - - - -</option>
    <option value="http://www.eofficeprofessionals.com/sandbox/oct.asp" ALIGN=LEFT 
    
    VALIGN=TOP>OCT</OPTION>
    <option value="http://www.eofficeprofessionals.com/sandbox/nov.asp">NOV</OPTION>
    <option value="http://www.eofficeprofessionals.com/sandbox/dec.asp">DEC</OPTION>
    
    
    </select>
    </form>
    
    <iframe width=180 NAME="FRAME" 
    height=150 src="http://www.eofficeprofessionals.com/sandbox/oct.asp" frameborder="0" 
    scrolling="no"></iframe>

    Website Design & Hosting by E-Office Professionals www.eofficeprofessionals.com

    The only stupid question is the one not asked.


    Offer solutions-not criticism.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:41 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com