Need to break a while..

Need to break a while..

am 10.09.2007 17:57:28 von Sonnich Jensen

Hi!

I have a page, including a while, which can read quite an amount of
data, if the user selects so.
I want to add something, so I can break this while - I havent found it
yet.

I have tried connection_aborted and connection_status, but they do not
do the trick.

I'd like:

1) to stop it, when the user clicks on a link, so it goes to the new
page, and stops it present action
2) eventually to add a "Stop" button on the page - any ideas how to
achive that?

BR
Sonnich

Re: Need to break a while..

am 10.09.2007 18:09:16 von zeldorblat

On Sep 10, 11:57 am, Sonnich Jensen
wrote:
> Hi!
>
> I have a page, including a while, which can read quite an amount of
> data, if the user selects so.
> I want to add something, so I can break this while - I havent found it
> yet.
>
> I have tried connection_aborted and connection_status, but they do not
> do the trick.
>
> I'd like:
>
> 1) to stop it, when the user clicks on a link, so it goes to the new
> page, and stops it present action
> 2) eventually to add a "Stop" button on the page - any ideas how to
> achive that?
>
> BR
> Sonnich

When the browser makes a new request before the current one is
finished the default behavior is for PHP to abort the script. It
sounds like that's what you want, no?

Re: Need to break a while..

am 11.09.2007 15:25:31 von Sonnich Jensen

On Sep 10, 7:09 pm, ZeldorBlat wrote:
> On Sep 10, 11:57 am,SonnichJensen
> wrote:
>
> > I have a page, including a while, which can read quite an amount of
> > data, if the user selects so.
> > I want to add something, so I can break this while - I havent found it
> > yet.
>
> > I have tried connection_aborted and connection_status, but they do not
> > do the trick.
>
> > I'd like:
>
> > 1) to stop it, when the user clicks on a link, so it goes to the new
> > page, and stops it present action
> > 2) eventually to add a "Stop" button on the page - any ideas how to
> > achive that?
>
> When the browser makes a new request before the current one is
> finished the default behavior is for PHP to abort the script. It
> sounds like that's what you want, no?- Hide quoted text -

I solved the problem with an