Re: Pause for user input?

From: Date: Wed, 20 Nov 2002 19:39:08 +0000
Subject: Re: Pause for user input?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125306@lists.php.net to get a copy of this message
"Larry Brown" <larry.brown@dimensionnetworks.com> wrote: > The idea is to have the script start to load, prompt for a question or more, > then use the data from the response to complete loading the page and avoid > having to post all of the variables from page to page to get all of the > responses back. A lot of the questions are formed based on the answers to > previous questions so I'm trying to keep the number of separate pages to a > minimum by using such a technique. I understand that Java can provide this > function, but I want to do as much with PHP and as little as possible with > Java. I think you're referring to JavaScript and NOT Java. But, whether it's Java or Javascript, you cannot really pause/stop the browser then do something to "complete loading the page." (Unless you press "stop"--but this would require you to reload.) Anyway, Javascript (if you're referring to it) doesn't have that kind of function (AFAIK). Javascript can hide/unhide element on your form. It can also enable/disable a checkbox, for example. But those functions would only work AFTER the page is already loaded--and _not_ while it is loading. (Also, *after* the Javascript file--if you're using and external one--is already downloaded inside the your visitors' disk, etc.) - E PS BTW, Javascript (support) can be turned off by your visitors--maybe you already know that... And... not all browsers supports Java. (But then again, you don't even need a browser to run Java! What am I saying here?...)

« previous php.general (#125306) next »