PDA

View Full Version : First page 5 seconds then go to next page


allenz
10-18-2004, 10:40 PM
Hi
Am trying to figure out how and where to put the script. On show or on timer?
When my program starts page 1 comes up. Then after 5 seconds I want to go to the next page.

I search the forum and found a script that's almost 100 lines long. Phew! That's a lot for a simple timer function.

Anyway I tried this but I'm missing a few things. The page comes up and immediately goes to the next page. Not waiting 5 seconds.

On Show
01 Page.StartTimer(5000);
02 Page.Navigate(PAGE_NEXT);
03

Basically it's a splash screen.
Can someone help please?
Thanks
Allen

Worm
10-18-2004, 10:46 PM
Your almost there.

The line: Page.StartTimer(5000)

tells the app that you want the code in the On Timer event to be ran every 5000 milliseconds (or 5 Seconds). Once the timer is started, it will fire the On Timer event in the interval you specify.

So, to have the page jump in 5 seconds, start the timer On Show, and then in the On Timer event, do the page jump.

On Show:
Page.StartTimer(5000)

On Timer:
Page.Jump(PAGE_NEXT)

Intrigued
10-18-2004, 11:15 PM
The Page.Jump(NEXT_PAGE) should be:

Page.Navigate(PAGE_NEXT); -- Note the Navigate change out

Sincerely,

Worm
10-18-2004, 11:29 PM
:) that'll teach me to think I know what I'm talking about :)

Intrigued
10-18-2004, 11:40 PM
Eh... I transposed PAGE_NEXT to NEXT_PAGE... so I am no better. ;)

I am taking that XML approach (aka. Make your own variables up as you go). Har!

yosik
10-19-2004, 02:40 AM
Question:
When launching the OnTimer event, is it:
Launch...wait..launch

or

Wait...Launch...wait

WHich, of course would influence the sequence of events...
Yossi

allenz
10-19-2004, 05:00 AM
Ahhhh! Thank you :)

Now it works.

So on show starts the event (Timer) and the script oh the timer tab executes what the On Show started.

Thanks much
Allen

Intrigued
10-19-2004, 09:19 AM
Question:
When launching the OnTimer event, is it:
Launch...wait..launch

or

Wait...Launch...wait

WHich, of course would influence the sequence of events...
Yossi

Launch...wait..launch (from the point of the Page's On Show event firing) would be my opinion.