> -----Original Message-----
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, November 02, 2003 2:03 PM
> To: Robin Kopetzky
> Cc: PHP General
> Subject: Re: [PHP] JavaScript question
> 
> 
> Would Refresh header work for you?
> 
> header('Refresh: 15; url=slides.php?page=2');
> 
> If you send this header the browser will navigate to 
> slides.php?page=2 
> after 15 seconds without user intervension.
> 
> Robin Kopetzky wrote:
> > Good morning.
> > 
> > I know this may be off-topic but I don't know where to turn.
> > 
> > I'm building a dynamic web page system with PHP and need to 
> figure out 
> > in JavaScript how to do something. I have the timer figured out in

> > JavaScript but what I need is a way to automatically submit 
> a request 
> > back to the web server after the timer runs out. What I'm 
> trying to do 
> > is display slides in sequence. When the timer expires, it 
> sends back 
> > to the web server the parameters of slide group and the last slide

> > displayed. The PHP on the server end builds a new page and 
> sends it to 
> > the browser with the next slide in the sequence.
> > 
> > Any help would be greatly appreciated and my PHP skills are vastly

> > above my JavaScript skills (very basic beginner).
> > 
> > Robin 'Sparky' Kopetzky
> > Black Mesa Computers/Internet Service
> > Grants, NM 87020
> > 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

Refresh wouldn't work in this example, he needs the form to auto
submit after the timer expires. What you would need to do is add this
to your javascript at the position when the timer expires:

document.formname.submit();

Of course replace formname with the name of your form.

I believe this is correct. I didn't test it.



Thanks,

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to