Re: AJAX and PHP
| From: | Nitsan Bin-Nun | Date: | Sat, 04 Oct 2008 11:48:16 +0000 |
| Subject: | Re: AJAX and PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281435@lists.php.net to get a copy of this message | ||
It depends how much stuff you have in the first div, it there are a lot of
images and the user will have to load them again (in case there is no cache)
and you care for the traffic those images cost - it would be better to use
AJAX.
But generally - they both okay, I personally would use reload of the whole
page just because of the time it would take me to develop it with ajax ;)
HTH,
Nitsan
On Sat, Oct 4, 2008 at 12:10 PM, Alain Roger <raf.news@gmail.com> wrote:
> HI,
>
> i'm currently working on some web application and i would like to know what
> is the best way to do what i want.
> basically like all application i have a menu and based on selected item
> menu
> i want to display a page (basically 50 % of this new page is DB
> result/grid.
>
> As usual i have 2 divs, one for the menu one for the content of DB to
> display.
> i would like to know if it's not better to use AJAX to load the content of
> the second div (DB result and other stuff) instead to every time load a new
> page which load menu and content of DB ?
>
> what are your experiences on such thing ?
> thx.
>
> --
> Alain
> ------------------------------------
> Windows XP SP3
> PostgreSQL 8.2.4 / MS SQL server 2005
> Apache 2.2.4
> PHP 5.2.4
> C# 2005-2008
>