hi…
Okay… here is my problem… I am making a site on asp these days… the problem is that i need to redirect from an inner frame to the parent window…
i have tried this through asp but since my knowledge of that is very limited… i can’t get it to work…
can you post the frames.html you have? basically, you can target any frame if you have identified it in your frame html wrapper.
– sample (cut and paste it from my site).
<frameset rows=“70,,60" border=“0” frameborder=“0”
frameborder=“no” framespacing=“0”>
<frame name=“banner” scrolling=“no”
noresize target=“main” src=“header.htm”>
<frameset cols="150,”>
<frame name=“contents” target=“main” src=“nav.htm”>
<frame name=“main” src=“Body.htm”>
</frameset>
<frameset cols=“150,*”>
<frame name=“bottomNav” target=“main” src=“bottomnav.htm” scrolling=“no” noresize>
<frame name=“bottmMain” src=“bottomMain.htm” scrolling=“no”>
</frameset>
<noframes>
<body>
– end sample
now the name is important so that when you try to redirect a link like “<a href=“goto.asp” target=“main”>” this would redirect the page using the Main frame of the site.
here the html of the frames… My problem is that i want to redirect to the parent page…
<html>
<head>
<title>Inbox</title>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”>
</head>
I am not quite sure of the implications of trying to get a server side language to redirect the parent page from within a frame - but needless to say it’s not possilble.
The Actions of the parent and the children are controlled by the dom, which is clientside - and only possibly controlled by direct actions / Scripting - or in an extreme case remote or pseudo remote scripting. In the case of the later it’s a request->response scenario anyway.
However if you want to use javascript to redirect the parent from a child frame - then you’d use top.window.href - i think … if you want to check this is right - alert it before trying it - and make sure the url is that of the top window (probably index.html)
Hope this helps.
If you want more info - specify more…