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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with linking Jumpy Combo Box inside a FRAME page!

Status
Not open for further replies.

kimly

MIS
Jul 11, 2000
7
US
Hi Guys,
I have a website with frames in it. I used a jumpy combo box to link onto the same page but different area of the page. It is something similar to using an anchor. For Example <a href=&quot;#AA&quot;></a>. I want to use the combo box to jump around the same page but different spot. Everything was successful except when I click on the Combo Box my &quot;FRAME&quot; doesn't show anymore. I notice that my url changed. I think because I linked to the actually page instead of the page with the frame.
Can you guys please help me to figure this out!

So my point is to use the combo box that can be linked inside a page with the frame intact.

Kimly


Here is the script and the html code

Script:

<script language=&quot;JavaScript&quot;>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value+&quot;'&quot;);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>



html:

<form name=&quot;form1&quot;>
<select name=&quot;select4&quot; onChange=&quot;MM_jumpMenu('parent',this,1)&quot;>
<option selected>Go to.... </option>
<option value=&quot;html#19&quot;>11-19-2000</option>
<option value=&quot;html#20&quot;>11-20-2000</option>
<option value=&quot;html#21&quot;>11-21-2000</option>
</select>
</form>
 
well the call has to be wrong

fuction has to call the framename assigned to it there is a writeable script for it

mail me if this does not work

[tt]<script language=&quot;JavaScript&quot;>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value+&quot;'&quot;);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>



html:

<form name=&quot;form1&quot;>
<select name=&quot;select4&quot; onChange=&quot;MM_jumpMenu('parent[red].framename[/red]',this,1)&quot;>
<option selected>Go to.... </option>
<option value=&quot;html#19&quot;>11-19-2000</option>
<option value=&quot;html#20&quot;>11-20-2000</option>
<option value=&quot;html#21&quot;>11-21-2000</option>
</select>
</form>[/tt]

see the part in the red that is what i have changed try it
and replace the framename with ur actual framename
regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top