PDA

View Full Version : Refresh



SonHouse
02-18-2004, 05:01 PM
Hi,

Can I reload a page that is not a web object page? I have a page that prompts the user to solve some math problems and I would like to be able to clear the page without them leaving. I created a button that jumps back to the first page then automatically jumps back but you can see the first page briefly. I'm sure there is an easier way...any ideas?

Thanks.

Corey
02-18-2004, 05:08 PM
What are you trying to clear? For example you can use Input.SetText set to "" to clear an input field...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

SonHouse
02-18-2004, 05:21 PM
well...I have this math drill program, that prompts the user on page 1 to either do addition or subtraction...if they hit the addition button, it automatically generates a random number of problems and takes them to the addition page where they can solve up to 20 different simple addition problems. My problem is I have to back out to the first page to regenerate some new problems using the preload from the first page button. Basically, I'm just trying to clear the random numbers that are generated from the first run and regenerate new ones without leaving that page...does that make sense?

Corey
02-18-2004, 05:31 PM
Sorry, I should have been more specific. What type(s) of object(s) are you trying to clear?

You can clear input objects, button objects, label objects, paragraph objects, etc. without leaving the page using the corresponding SetText actions, this is what I would do. Using the very same technique you can add your new question values also, without leaving the page... Just one idea anyhow... :)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

SonHouse
02-18-2004, 05:37 PM
Sounds good...thanks for your help.

yosik
02-18-2004, 11:55 PM
Another way would be to put your initialization function in the global function area and call it whenever you need it, both in the first page and in the following pages.
You could even check the page you call it from and depending on that data, do a different math calculation.
Yossi