PDA

View Full Version : load the content without a page refresh


student101
07-31-2008, 03:54 PM
Have tried whole day to get this to work.

I would like to load the content without a page refresh.

The page I have up is a test page that has content on it.
http://www.kleyn.co.za/cart/?catid=1
When I click the left nav the top nav should load without refresh
When I click the top nav the main image should also load without a refresh

Is this possible?

This all works from a mysql database and the links work like this;
<a href="index.php?catid=<?php echo $_GET['catid']; ?>&amp;img=<?php echo $row_rsnav1['thumb']; ?>&amp;id=<?php echo $row_rsnav1['sortorder']; ?>"><img src="images/thumbs/<?php echo $row_rsnav1['thumb']; ?>" alt="" width="100" border="0"/></a>

Cheers

davidj
07-31-2008, 04:11 PM
how can you access a db without a server call (page submit)

you could use AJAX then it wont refresh or submit

student101
07-31-2008, 07:46 PM
Yes, how would I do that?
Without a page refresh.

domedia
07-31-2008, 08:05 PM
Yes, how would I do that?
Without a page refresh. It's a technique called AJAX. Google it you'll see a ton of resources on it.

student101
07-31-2008, 08:13 PM
It's a technique called AJAX. Google it you'll see a ton of resources on it.
Kinda been busy with that whole day, I may have found a way - not sure.

Cheers