_________ Frame1 ________
Frame2 | Frame3
|
|
|
|
What I am intending to do?
Frame3 has a field with dropdown list box. In Frame3, user makes a seleciton from a field values, and upon selection of a field value appropriate page should open up in Frame2.
I have done like this,
function f1() {
var f=document.forms[0]
current = f.CLEDProducts.selectedIndex;
currenttext = f.CLEDProducts.options[current].text;
switch(currenttext){
case "- - - - select model - - - -" :
alert("Please select one of the products.")
return
break
case "" :
alert("Please select one of the products.")
return
break
default:
document.forms[0].LEDProducts.value = "- - - - select model - - - -";
document.forms[0].SIDMProducts.value = "- - - - select model - - - -";
document.forms[0].FAXProducts.value = "- - - - select model - - - -";
document.forms[0].MFPProducts.value = "- - - - select model - - - -";
parent.location.href = "http://ipaddress/db1/framesetname?OpenFrameset&Frame=Frame2&Src="+"/db2/(LookUp)/" + currenttext+"?OpenDocument";
return
Break
}}
This function works fine, for the firsttime, if user opens up a application for the first time on browser, and makes selection from a dropdown list box, appropriate page opens up in Frame2, but again if user make another selection from frame3, then the page opens up in a new window, I don’t know why? I want page to be displayed always in frame2 upon selection from a frame3, any idea where am I going wrong?
Thanks
MS