TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-15-2008, 04:51 PM   #1 (permalink)
The Acquainted
Inquisitive 
 
Join Date: Jul 2005
Location: UK
Posts: 121
Thanks: 41
Brook is on a distinguished road
Default Ajax - any good tutorials?

Just wondering if you know of any good Ajax tutorials that show you how to do a basic tabbed box of info.

Eg a box that has:

Latest posts | Most Read | Mosted Commented

The sql queries are easy enough - but I'd like to find an ajax solution where the tabs _only_ load the data (ie make the call to the database) if the tab is clicked on. As I feel this is more efficient and the server is only hit with a query when someone is actually interested in that data.

Just wondering if you guys have come a cross a good example/tutorial I could use
__________________
PS3 Forums on GameSlurp - the site for gaming fans!
Brook is offline  
Reply With Quote
Old 01-15-2008, 05:03 PM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

There are a couple of tutorials below. I don't know how good they are ! I'm not endorsing them.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
Brook (01-16-2008)
Old 01-16-2008, 01:14 AM   #3 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

Isn't AJAX a search engine nightmare?
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 01-16-2008, 01:56 AM   #4 (permalink)
The Addict
Top Contributor Good Samaritan 
 
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
RobertK is on a distinguished road
Default

Quote:
Originally Posted by Aaron View Post
Isn't AJAX a search engine nightmare?
It can be a search engine nightmare, if you design things wrong. What was happening was individuals were making 100% AJAX driven sites, with no way to show a given page to a friend or for search-bots to access the site. Eventually these things cleared up, and the problem has regressed. Though it is a combination of design and implementation that, when combined, will kill your site in the listings quite effectively.
__________________
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
RobertK is offline  
Reply With Quote
Old 01-16-2008, 01:49 AM   #5 (permalink)
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

Atleast from what I've heard it is, but IMO a search engine ranking can get you visitors but good rich content (such is the way of AJAX) will keep the visitors coming, word of mouth is cheap and good advertisement.

Although AJAX can be used for things non-related to a search engine such as

- Form validation
- Cool little shoutboxes
- Slide shows
- Can't think of much more, but I know there is more.
TlcAndres is offline  
Reply With Quote
Old 01-16-2008, 05:02 AM   #6 (permalink)
The Acquainted
Inquisitive 
 
Join Date: Jul 2005
Location: UK
Posts: 121
Thanks: 41
Brook is on a distinguished road
Default

Thanks WH. I think the ajax code will be easy enough, it's just implementing that with php/mysql that may present a problem lol. I'll post again if I get stuck if that's ok!

Cheers everyone else for the comments - in this case, it's probably a good idea that search engines will ignore the content as it will just be used to sort links to popular and most read threads :)
__________________
PS3 Forums on GameSlurp - the site for gaming fans!
Brook is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:26 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design