PDA

View Full Version : Label has wrong text after Page.Jump on "On Preload"


SonG0han
01-30-2008, 03:01 AM
Hi, I have just created a new Page.Jump action in the On Preload section of my startpage to jump to another page if a variable is not set. But when I do this the new page which is displayed has the label from the other page on it. And it only happens if I do the page.Jump in the On Preload of a page. :huh

If I put the Page.Jump in "On Show" everything works fine.

Did anyone else notice this?

How it looks like:

Page1:
-----------------------

LABEL_1


-----------------------

Page2:
-----------------------

LABEL_2


-----------------------

And when I jump to page 2 at "On Preload" of Page 1 I get this:

Page2:
-----------------------

LABEL_1


-----------------------

Darryl
01-30-2008, 09:41 AM
Hi SonG0han,

I can't seem to be able to replicate this problem on my end. Are you sure that your variables are being set correctly?

SonG0han
01-30-2008, 12:24 PM
hmm It could be that the label on page 2 had the same name as the one on page 1. Is script below the page.jump on the On Preload event executed by default? (cant remember right now I think there was a setting to enable/disable this) Then maybe after the jump there was an action to change the text of the label. :huh

Darryl
01-31-2008, 08:18 AM
No, the Page.Jump action exits the script on the current event, so it wouldn't be that.