header("Locatio n: 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 3 26282
Phil Powell wrote: header("Locati on: 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:
"Phil Powell" <so*****@erols. com> writes: header("Locatio n: 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
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.ne t> wrote in message
news:wu******** **@foo.tweety.n et... "Phil Powell" <so*****@erols. com> writes:
header("Locatio n: 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: maxx |
last post by:
Hi,
I want use the header authentification (HTTP/PHP module), and i've a
big problem for to get the varaibles 'PHP_AUTH-*".
This is my source code :
---------------------------------------------------------------------------------
<?php
function authentificate() {
header('WWW-Authenticate: Basic realm="My Realm"');
|
by: Slash |
last post by:
I often do a lot of text-mode programming in Linux and wanted to use
colors in text mode, and found the ncurses library needlessly complex
for small applications. So I wrote my own little header to handle
colors in C++. (The code follows.)
This allows me to write code like
cout << gotoxy(10, 11)
<< color(lightcyan, blue)
<< "some text whatever";
|
by: Karthik |
last post by:
When I try to compile my VC++ program (am Using VS6.0). I get the
following error in a header file ATLCONV.H.
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(52)
: error C2065: '_ASSERTE' : undeclared identifier
Error executing cl.exe.
and it points to
inline LPWSTR WINAPI AtlA2WHelper(LPWSTR lpw, LPCSTR lpa, int nChars,
|
by: Alan Silver |
last post by:
Hello,
If I have a control in the header template of a repeater, how do I get
at this in code? I know how to do this for an ItemTemplate, you just
do...
txtFred = (TextBox)rptNpVars.Items.FindControl("txtFred");
where i is the index of the item. How do I do a similar thing for the
header? Following a post I found in the archives, I tried ...
|
by: Dan V. |
last post by:
Does anyone know why the header looks correct in IE 6.0 and not Firefox
1.07?
I am trying to have a header that looks good when you expand it wider and
smaller.
In other words when you shrink the window narrower than the main header
image it does not wrap, and when you expand the window wider than the main
banner image the corner and background image expand to the size.
It has one large image about 500 pix wide, a right corner that is...
| |
by: patelbrijeshn |
last post by:
Hi ,
I want to display a huge table. So I want to make the table header
visible on the screen even as the user scrolls the window. I am using
div tag to create the floating table header.
Here is the code snippet :
HTML :
<body >
<div id="headStart" style="position: absolute;">
|
by: 2291980 |
last post by:
Hello
can any body tell me the dff between
function redirect($url)
{
echo "<script>";
echo "window.location='".$url."'";
echo "</script>";
|
by: ak1dnar |
last post by:
Hi,
I am creating script to download some files using download dialog box.First time i tried to use ajax for this, but i failed.
So i went through this way,
By Using this function i am going to submit the Data to process to PHP.
JS Function:
function file_down(fid)
{
window.location = "download.php?fid="+fid;
}
|
by: rohini |
last post by:
Dear friends,
In the popup window i am using the header for downloading the files.
I call the popup window in one directory say for example:
/sample/download/popup.php
In the popup.php i call the function
window.open('../export/export.php');
In the export.php i am using the form action as export_type.php.
In the export_type.php i includes some file . In that one file contains the function for downloading.
|
by: kelvinwebdesigner |
last post by:
Hi everybody.
Im currently developing an application where users can upload files and later get acess to the url.
Im now having this trouble with header Cannot modify header information – headers already sent
This is my code so far
<?php #script 10.52 - show_image.php
$name = FALSE;//flag variable:
//check for an image in the URL:
if (isset($_GET)){
//Full image path:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |