How do I redirect after loading page content?

How do I redirect after loading page content?

am 23.10.2007 02:49:30 von Kevin Audleman

I understand how to use the header command to redirect a page before
any HTML has been loaded.However, I need to redirect after some HTML
has already been loaded. is there a command that will allow me to do
this?

Thanks,
Kevin

Re: How do I redirect after loading page content?

am 23.10.2007 02:52:13 von zeldorblat

On Oct 22, 8:49 pm, Kevin Audleman wrote:
> I understand how to use the header command to redirect a page before
> any HTML has been loaded.However, I need to redirect after some HTML
> has already been loaded. is there a command that will allow me to do
> this?
>
> Thanks,
> Kevin

Not in PHP. You can use Javascript, however.

Re: How do I redirect after loading page content?

am 23.10.2007 03:02:01 von Jerry Stuckle

Kevin Audleman wrote:
> I understand how to use the header command to redirect a page before
> any HTML has been loaded.However, I need to redirect after some HTML
> has already been loaded. is there a command that will allow me to do
> this?
>
> Thanks,
> Kevin
>
>

Kevin,

No - it's not PHP, but the HTTP protocol which prohibits it. You can
send a redirect, or you can send a page. But you can't send both.

But why would you want to? If you could redirect after sending
something, your users wouldn't seen the contents of the first page.

Rather, you should decide if you need to redirect before sending any
output, then take the appropriate action.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: How do I redirect after loading page content?

am 23.10.2007 06:06:52 von Puckdropper

Jerry Stuckle wrote in
news:ndSdnS3g5OGE1YDanZ2dnUVZ_qLinZ2d@comcast.com:

> Kevin Audleman wrote:
>> I understand how to use the header command to redirect a page before
>> any HTML has been loaded.However, I need to redirect after some HTML
>> has already been loaded. is there a command that will allow me to do
>> this?
>>
>> Thanks,
>> Kevin
>>
>>
>
> Kevin,
>
> No - it's not PHP, but the HTTP protocol which prohibits it. You can
> send a redirect, or you can send a page. But you can't send both.
>
> But why would you want to? If you could redirect after sending
> something, your users wouldn't seen the contents of the first page.
>
> Rather, you should decide if you need to redirect before sending any
> output, then take the appropriate action.
>

You can DELAY the redirect, however. I get the feeling that you want to
display a "Redirecting, please wait" type message, which can display
after the redirect info has been sent.

Puckdropper
--
Wise is the man who attempts to answer his question before asking it.

To email me directly, send a message to puckdropper (at) fastmail.fm

Re: How do I redirect after loading page content?

am 23.10.2007 18:45:46 von Kevin Audleman

On Oct 22, 6:02 pm, Jerry Stuckle wrote:
> Kevin Audleman wrote:
> > I understand how to use the header command to redirect a page before
> > any HTML has been loaded.However, I need to redirect after some HTML
> > has already been loaded. is there a command that will allow me to do
> > this?
>
> > Thanks,
> > Kevin
>
> Kevin,
>
> No - it's not PHP, but the HTTP protocol which prohibits it. You can
> send a redirect, or you can send a page. But you can't send both.
>
> But why would you want to? If you could redirect after sending
> something, your users wouldn't seen the contents of the first page.
>
> Rather, you should decide if you need to redirect before sending any
> output, then take the appropriate action.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

Thanks, it helps to understand the protocols. I'm working with a CMS
and the place where I hook my code in is after some of the HTML has
been output. That's why I just wanted to redirect. However sounds like
I'll have to look more under the hood and find the appropriate place
to put my code.

Kevin

Re: How do I redirect after loading page content?

am 23.10.2007 19:18:42 von Shelly

"Kevin Audleman" wrote in message
news:1193157946.743467.192160@e9g2000prf.googlegroups.com...
> On Oct 22, 6:02 pm, Jerry Stuckle wrote:
>> Kevin Audleman wrote:
>> > I understand how to use the header command to redirect a page before
>> > any HTML has been loaded.However, I need to redirect after some HTML
>> > has already been loaded. is there a command that will allow me to do
>> > this?
>>
>> > Thanks,
>> > Kevin
>>
>> Kevin,
>>
>> No - it's not PHP, but the HTTP protocol which prohibits it. You can
>> send a redirect, or you can send a page. But you can't send both.
>>
>> But why would you want to? If you could redirect after sending
>> something, your users wouldn't seen the contents of the first page.
>>
>> Rather, you should decide if you need to redirect before sending any
>> output, then take the appropriate action.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
> Thanks, it helps to understand the protocols. I'm working with a CMS
> and the place where I hook my code in is after some of the HTML has
> been output. That's why I just wanted to redirect. However sounds like
> I'll have to look more under the hood and find the appropriate place
> to put my code.
>
> Kevin
>

Kevin, I'm guessing here, but I think you mean that you want to insert php
content or testing into the html area. This can be done. In that area
where you want it done type:



Hope that is what you really meant and that it helps you. Note: This will
still be done at the server and an html page passed to the browser.

Shelly