redirecting a frame with java script

  • Thread starter Thread starter Cantekin Guneser
  • Start date Start date
C

Cantekin Guneser

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 vit java script
code

thanks in advance for ayn hepl or idea
 
Cantekin,

In that case, just have the event handler of the button access the frame
through the DOM and set the location property of the document in the frame.

Hope this helps.
 
firstly thanks for your attention
i am new on java scriptting, as we know in .net c# we can not direct frame
from another frame this is why i need i prepare a function as follow;
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';
}

sqlsrt is for querystring now can you tell me in detail how i can redirec
the other frame with this querystring
i will be glad if you can send me little eaxample
thank again
 
Cantekin,

The only way I can think of doing this would be to pass back a piece of
javascript that would redirect the frame, if the conditions are met. Since
this request is coming in from one frame, you can pass back a javascript
function which is executed on load which will set the location of the other
frame.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Cantekin Guneser said:
firstly thanks for your attention
i am new on java scriptting, as we know in .net c# we can not direct frame
from another frame this is why i need i prepare a function as follow;
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].value+'&state='+Form1.DDL_EstateProvince.options[Form1.DDL_EstateProvince.selectedIndex].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';
}

sqlsrt is for querystring now can you tell me in detail how i can redirec
the other frame with this querystring
i will be glad if you can send me little eaxample
thank again
 
Back
Top