|
Posted by Rik on 05/10/06 16:13
Garry Jones wrote:
> In the menu (m.php) the user can click the buttons marked "lions",
> "tigers", or "elephants". (which loads in indexc1.php, indexc2.php or
> indexc3.php). The problem with doing things the way I have is that
> the page is redrawn everytime the user clicks on another heading in
> the menu.
Because all those pages are almost the same, why not use a GET request?
index.php?var=lions etc.
> I guess that I should be calling in a.php, b.php, m.php d.php just
> once and then that the menu should just be changing the text
> displayed in the main text area without redrawing the entire site.
> (Similar to a target tag in frames).
>
> How is this effect created with php?
Not, as already pointed out. AJAX can help you out on the client side. It
relies on javascript, and some visitors may have disabled that.
If the header/menu/etc. are decently written, and existing images are
cached, it should be hardly noticable though.
Grtz,
--
Rik Wasmus
[Back to original message]
|