in my project i ahave frame sets i want to main frame to direct a url
with query string when press a button that is at left frame
thanks in advance for ayn hepl or idea
Cantekin Guneser - 22 Jan 2004 23:55 GMT
i have found solution with following code
function Find()
{
var qrystr;
qrystr =
'estype='+Form1.DDL_EstateType.options[Form1.DDL_EstateType.selectedIndex].v
alue+'&comtype='+
Form1.DDL_EstateComType.options[Form1.DDL_EstateComType.selectedIndex].value
+'&city='+Form1.DDL_EstateCity.options[Form1.DDL_EstateCity.selectedIndex].v
alue+'&state='+Form1.DDL_EstateProvince.options[Form1.DDL_EstateProvince.sel
ectedIndex].value+'&mtype='+Form1.DDL_Money.options[Form1.DDL_Money.selected
Index].value;
if(Form1.Textbox1.value == '')
qrystr += '&price=0';
else
qrystr += '&price=' + Form1.Textbox1.value;
if(Form1.CB_Foto.checked)
qrystr += '&foto=1';
else
qrystr += '&foto=0';
var frm = window.parent.frames;
frm(2).location = 'Search.aspx?'+qrystr
}