Wake Up ! 
October 1st, 2005, 10:45 AM
| | | |
Don't you think by now, being the 5+ version they would have fixed the
Header() to have a target, like " _top " and so on...
~ Somebody's Not Thinking ~ | 
October 1st, 2005, 12:55 PM
| | | | re: Wake Up !
Maverick said the following on 01/10/2005 10:33:[color=blue]
> Don't you think by now, being the 5+ version they would have fixed the
> Header() to have a target, like " _top " and so on...
>
> ~ Somebody's Not Thinking ~[/color]
You?
What are you talking about??
--
Oli | 
October 1st, 2005, 02:25 PM
| | | | re: Wake Up !
On 1 Oct 2005 02:33:52 -0700, "Maverick" <saenzcorp@yahoo.com> wrote:
[color=blue]
>Don't you think by now, being the 5+ version they would have fixed the
>Header() to have a target, like " _top " and so on...[/color]
You are apparently confusing PHP with the HTTP standard. There is no good
reason for HTTP to change the Location header to include HTML attributes such
as target.
HTTP is at version 1.1, not 5, and is unlikely to get any higher since it does
the job it's supposed to do quite well. http://www.w3.org/Protocols/
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool | 
October 3rd, 2005, 11:35 AM
| | | | re: Wake Up !
You guys are clueless; as to what I'm talking about, why answer...
php has a redirect function called header("location:
http:/so&so.com/");
it's not intended to replace html links like <a href: bla bla >
that is only a link function in html that requires you to click
something,
I'm talking php, a page that can redirect you to another page, but
can't select a target in case you want to use frames or iframes or
popup window, get it ?
and don't say "you can do it with javascript", because javascript seems
to not work well with tabs, that I think are very cool, and save
memory...
hope you understand now,
Thanks | 
October 3rd, 2005, 11:45 AM
| | | | re: Wake Up !
Maverick wrote:[color=blue]
> You guys are clueless; as to what I'm talking about, why answer...
>
> php has a redirect function called header("location:
> http:/so&so.com/");
>
> it's not intended to replace html links like <a href: bla bla >
> that is only a link function in html that requires you to click
> something,
>
> I'm talking php, a page that can redirect you to another page, but
> can't select a target in case you want to use frames or iframes or
> popup window, get it ?
>
> and don't say "you can do it with javascript", because javascript seems
> to not work well with tabs, that I think are very cool, and save
> memory...
>
> hope you understand now,
> Thanks[/color]
the header function works using the HTTP standard to send a header to
the browser through the server. That's why it's called header. If an
HTTP server doesn't support it there's nothing PHP can do about it.
javascript is client side, and works in a totally different way.
Hope you understand now.
i doubt it though. | 
October 3rd, 2005, 01:25 PM
| | | | re: Wake Up !
Target like _top, _self, _parent can not be implemented on
the server side (where PHP runs). They can not be implemented
in any language that runs on server side.
Target like _top, _self, _parent refer to layout of windows on
clients (yours) desktop. Server does not know anything about that.
DG | 
October 3rd, 2005, 02:35 PM
| | | | re: Wake Up !
Maverick wrote:[color=blue]
> You guys are clueless; as to what I'm talking about, why answer...
>
> php has a redirect function called header("location:
> http:/so&so.com/");[/color]
I repeat: *You* are not thinking.
"Location: ..." is not a function of PHP, but part of the HTTP
specification.
"_top", "_parent", etc. is HTML, i.e. is nothing to do with HTTP, and
certainly not PHP.
So, there will never be a function in PHP to do this, because it's
impossible.
P.S. I'd watch your attitude if you expect any help from a NG in
future.
--
Oli | 
October 3rd, 2005, 07:35 PM
| | | | re: Wake Up !
On 3 Oct 2005 03:21:55 -0700, "Maverick" <saenzcorp@yahoo.com> wrote:
[color=blue]
>php has a redirect function called header("location:
>http:/so&so.com/");[/color]
You are apparently still confusing PHP with the HTTP standard.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool | 
October 4th, 2005, 07:35 AM
| | | | re: Wake Up !
ok, it's obvious I must not be explaining this right,
I don't know how else to explain this, but I have no interest in
upsetting anyone, only to fix problems with PHP...
In programming I find nothing " Impossible ", just a lack of vision
that's easily fixed...
I appreciate all your comments guys...good&bad...
Thanks,
Mav | 
October 4th, 2005, 08:05 AM
| | | | re: Wake Up !
You are explaining this right, and you are being answered right. Thing
is, it is *not* a problem with PHP, as you've already been said. PHP is
server side, and the fact that you open an html page in a _parent, _top
or _blank window is client side. It simply has nothing to do, and
possibly it cannot be done. But even if it could, it would be PHP
getting out of its turf. | 
October 4th, 2005, 09:55 AM
| | | | re: Wake Up !
Hey I think you are going to invent new application which can handle
both client and server side component...!!!
I'm not trying to upsetting you..but sometime be practical..
If still you want to combine north pol and south pol to the center of
earth
best of luck.......... | 
October 4th, 2005, 02:05 PM
| | | | re: Wake Up !
Maverick wrote:[color=blue]
> ok, it's obvious I must not be explaining this right,
> I don't know how else to explain this, but I have no interest in
> upsetting anyone, only to fix problems with PHP...
> In programming I find nothing " Impossible ", just a lack of vision
> that's easily fixed...
>[/color]
YOU WANT THE TRUTH!!?? YOU CAN'T HANDLE THE TRUTH!!!
:) | 
October 4th, 2005, 05:35 PM
| | | | re: Wake Up !
On 3 Oct 2005 23:30:31 -0700, "Maverick" <saenzcorp@yahoo.com> wrote:
[color=blue]
>ok, it's obvious I must not be explaining this right,[/color]
You are totally explaining it right. You want to be able to redirect
to a specific frame. I had exactly the same issue with an application
I am working on. Apparently really old versions of Netscape supported
this particular thing (via a header) but no modern browser supports
it.
The syntax, in PHP, is:
header('Window-target: sometarget');
header('Location: http://somelocation');
Just don't expect it to work on anything other than old versions of
Netscape.
The problem is not PHP, it's with browsers and the HTTP spec. The
feature you are looking for doesn't exist in the browser or in the
spec.
The solution (which I culled from an ASP forum) is to simply fire out
some javascript. It doesn't have too many problems with tabs as it
will look to the current tab first before looking to other tabs.
[color=blue]
>In programming I find nothing " Impossible ", just a lack of vision
>that's easily fixed...[/color]
Nothing is impossible -- but you do you have to find the right
location for your solution. You would need to add the feature to the
web browsers before PHP would be able to use it. ;) | 
October 4th, 2005, 07:55 PM
| | | | re: Wake Up !
Maverick (saenzcorp@yahoo.com) wrote:
: ok, it's obvious I must not be explaining this right,
Not explaining well is usually a symptom of not understanding well.
--
This programmer available for rent. |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,662 network members.
|