By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,723 Members | 1,876 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,723 IT Pros & Developers. It's quick & easy.

header() problem with Window-target

P: n/a
header("Location: http://$SERVER_NAME/index.php; Window-target: top"");

I am getting a 403 Forbidden upon running this script, which is not what I
wanted. Is there a way I can redirect, but at the same time redirect out of
the frame that the redirection script is located to _top? I don't want to
have to rely on Javascript to do this as this is a foreign site (European)
where Javascript is often turned off.

Thanks
Phil
Jul 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Phil Powell wrote:
header("Location: http://$SERVER_NAME/index.php; Window-target: top"");

I am getting a 403 Forbidden upon running this script, which is not what I
wanted. Is there a way I can redirect, but at the same time redirect out of
the frame that the redirection script is located to _top?
hehehe, as far as I know: no.

Why don't you go to http://$SERVER_NAME/index.php with
a standard HTML link instead of a server redirect?

<?php
echo "<a href=\"http://$SERVER_NAME/index.php\"
target=\"_top\">index</a>";
?>

hth
I don't want to
have to rely on Javascript to do this as this is a foreign site (European)
where Javascript is often turned off.


Mine is off, and I'm in Europe, and I get mad when I click a link
and a new window pops up(*)!!! When I want a new window
I'll Shift-Click, thank you very much :)

(*) not really: my proxy changes [target="xxx"] to [notarget]
--
"Yes, I'm positive."
"Are you sure?"
"Help, somebody has stolen one of my electrons!"
Two atoms are talking:
Jul 16 '05 #2

P: n/a
"Phil Powell" <so*****@erols.com> writes:
header("Location: http://$SERVER_NAME/index.php; Window-target: top""); ^^^^^^^^^^^^^^^^^^ I am getting a 403 Forbidden upon running this script, which is not what I
wanted. Is there a way I can redirect, but at the same time redirect out of
What should underlined (Window-target: top) be? I don't think you can do
that (pseudo-javascript?) in HTTP headers.
the frame that the redirection script is located to _top? I don't want to
have to rely on Javascript to do this as this is a foreign site (European)
where Javascript is often turned off.


Just an idea, since it might not fit into your concept of site: use
target="_top" in link (<a href...>) tag, forms, or whereever it can be
used. It should break out of frame, load page on top of existing frameset
(yes, it *can* be another frameset).

HTH.

--
Vedran Krivokuca [mANiaC] :: To contact me, use usenet -at- 3 dot 14 dot net
Jul 16 '05 #3

P: n/a
I had to forget the whole thing and serve up some HTML with a hard-coded
link with target=_top. Very sloppy solution but the only one there is.

Phil

"Vedran Krivokuca" <ne**@3dot14.net> wrote in message
news:wu**********@foo.tweety.net...
"Phil Powell" <so*****@erols.com> writes:
header("Location: http://$SERVER_NAME/index.php; Window-target: top""); ^^^^^^^^^^^^^^^^^^
I am getting a 403 Forbidden upon running this script, which is not what I wanted. Is there a way I can redirect, but at the same time redirect out of
What should underlined (Window-target: top) be? I don't think you can do
that (pseudo-javascript?) in HTTP headers.
the frame that the redirection script is located to _top? I don't want

to have to rely on Javascript to do this as this is a foreign site (European) where Javascript is often turned off.


Just an idea, since it might not fit into your concept of site: use
target="_top" in link (<a href...>) tag, forms, or whereever it can be
used. It should break out of frame, load page on top of existing frameset
(yes, it *can* be another frameset).

HTH.

--
Vedran Krivokuca [mANiaC] :: To contact me, use usenet -at- 3 dot 14 dot

net
Jul 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.