logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-31-2008, 02:54 PM   #1
student101
 
Join Date: Dec 2007
Posts: 379
Default load the content without a page refresh

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;
PHP Code:
<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
__________________
Amateurs ... Built the ark.
Professionals ... Built the Titanic.
specificity [sound like spe-sifis-ity]
student101 is offline   Reply With Quote
Old 07-31-2008, 03:11 PM   #2
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

how can you access a db without a server call (page submit)

you could use AJAX then it wont refresh or submit
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-31-2008, 06:46 PM   #3
student101
 
Join Date: Dec 2007
Posts: 379
Default

Yes, how would I do that?
Without a page refresh.
__________________
Amateurs ... Built the ark.
Professionals ... Built the Titanic.
specificity [sound like spe-sifis-ity]
student101 is offline   Reply With Quote
Old 07-31-2008, 07:05 PM   #4
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Quote:
Originally Posted by student101 View Post
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.
domedia is offline   Reply With Quote
Old 07-31-2008, 07:13 PM   #5
student101
 
Join Date: Dec 2007
Posts: 379
Post

Quote:
Originally Posted by domedia View Post
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
__________________
Amateurs ... Built the ark.
Professionals ... Built the Titanic.
specificity [sound like spe-sifis-ity]
student101 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com