Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applying 2 x onChange actions in a Form using Frames

Status
Not open for further replies.

PaddyWho

Programmer
May 8, 2002
6
GB
I'm building a site with around 4 frames. One has a 'jumpmenu' that serves different urls in two other frames. I've managed to make my ugly scripts working in IE, but in NS(4-6)I get simply

"
Code:
<html><body></body></html>
&quot;

displaying in both targetted frames.

The jumpmenu frame is this:
Code:
<!-- changes content of main 'mid' frame -->
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value1+&quot;'&quot;);
  if (restore) selObj.selectedIndex=0;
}
<!-- changes content of bottom'bot' frame -->
function MM_botty(targ,selObj,restore){ //v3.0
  eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value2+&quot;'&quot;);
  if (restore) selObj.selectedIndex=0;
}

</head>
<body bgcolor=&quot;#03181E&quot;   topmargin=&quot;0&quot; leftmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;   onLoad=&quot;&quot;>

<table width=&quot;640&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;><tr><td valign=&quot;top&quot;>
<img src=&quot;file:///F|/Survey2002/Drawing%20Site/images/top_key.gif&quot;/></td><td align=&quot;right&quot; valign=&quot;top&quot;> 
      <form name=&quot;topnav&quot; method=&quot;post&quot; action=&quot;&quot; target=&quot;bot&quot;>
        <div align=&quot;right&quot;> 
          <select name=&quot;select&quot; onChange=&quot;MM_jumpMenu('parent.frames[\'mid\']',this,0) ;MM_botty('parent.frames[\'bot\']',this,0)&quot; style=&quot;background-color:#03181E; border-style:1px; font-size: 10; color: #FFFFFF; font-family: verdana, helvetica, arial&quot; width: 50px;>
            <option value=&quot;00_2002f.asp&quot; selected>navigate</option>
            <option value=&quot;00_2002f.asp&quot;>~~~~~~~~~~~~~~</option>
            <option value1=&quot;key1.html&quot; value2=&quot;bot_5.htm&quot;>01. introduction</option>
            <option value1=&quot;key1.html&quot; value2=&quot;bot_6.htm&quot;>02. key findings</option>
            <option value1=&quot;skeleton.html&quot; value2=&quot;bottom.htm&quot;>03. internet users</option>
            </select>
        </div></form></td></tr></table>
</body>
</html>

Any ideas? Do i need some kind of 'global mountpoint'?
 
Zero replies?? crikey!

To simplify : Is there a way to load 2 separate pages in a frameset from a single jump menu selection?

Have managed it in IE but NS says 'no'. Any ideas, guys?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top