Re: Open form in new window
| From: | Tim Streater | Date: | Mon, 04 Mar 2013 21:25:00 +0000 |
| Subject: | Re: Open form in new window | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-320397@lists.php.net to get a copy of this message | ||
On 04 Mar 2013 at 20:17, Paul M Foster <paulf@quillandmouse.com> wrote:
> On Mon, Mar 04, 2013 at 05:39:00PM +0000, Tim Streater wrote:
>> Personally I never submit forms. I use ajax to communicate with PHP
>> scripts and do something with the data that is returned by the script.
>> You can see a simple example at http://www.clothears.org.uk
> I'm trying to figure out where the net gain in that is. The PHP file
> being called via AJAX is doing its processing on the server either way.
> So it appears the only difference is an asynchronous Javascript/AJAX
> call or a synchronous PHP call (on a standard PHP form submission). What
> am I missing?
ISTM it's better for the user if, rather than reloading a whole page, you can get some bits of
data from the server and use them to just alter the parts of the page that need updating.
--
Cheers -- Tim