Pass in certain GET or POST data based on the request.

$("#DIV1...").load(some.php?id=dothis);
$("#DIV2...").load(some.php?id=dothat);
$("#DIV3...").load(some.php?id=monkeyseemonkeydo);

On Sep 25, 4:04 am, thodoris <tka...@gmail.com> wrote:
> I am developing a webpage that is jquery powered. Many div-hotspots in
> the page is ajax powered and they should update dynamically. For
> example
> number of ratings
> average rating
> number that a video is favoured
>
> Now i am doing this:
> $("#DIV1...").load(some1.php);
> $("#DIV2...").load(some2.php);
> $("#DIV3...").load(some3.php);
>
> But the number of .php files are increasing too much. Is there another
> idea except to have one .php with
> many IF ELSE inside?
>
> thanks

Reply via email to