Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2006, 12:57 AM
Guest210212002
Guest
 
Posts: n/a
Default Check out this absolutely excellent use of AJAX

<a href="http://www.fohguild.org/forumspy/forumspy.php" target="_blank">http://www.fohguild.org/forumspy/forumspy.php</a>

I don't believe you need an account there to see it in action. Basically that page auto-updates dynamically every time there's a post in one of the forums. There's also a great looking mouseover window that pops up at the bottom of the screen with thread preview in it.

It's hooked into every forum in the network of sites, not just the FoH site, so any time any of the uberguilds network sites gets a post, it updates that list.

(Before anyone asks, it's hand-coded by them, and they aren't sharing. I'd LOVE to have that on my site.)

Very, very slick.
Reply With Quote
  #2  
Old 07-20-2006, 01:13 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I consider that a horrible missuse of AJAX. It's doing the same thing as the dreadful AJAX chat script does. Polling the server every 5000 ms. That would bring a lot of sites down. If they have the server power then that's fine. But it is still not what ajax is designed to do. You could do the same thing with php and a header refresh.
Reply With Quote
  #3  
Old 07-20-2006, 02:09 AM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As Jump said, this is not what AJAX is for.
Reply With Quote
  #4  
Old 07-20-2006, 02:36 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still looks pretty nifty though. :classic:
Reply With Quote
  #5  
Old 07-20-2006, 07:31 AM
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could look better i think..
Reply With Quote
  #6  
Old 07-20-2006, 07:52 PM
Guest210212002
Guest
 
Posts: n/a
Default

/me still thinks it's nifty. :P
Reply With Quote
  #7  
Old 07-20-2006, 10:35 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Woah, way to kill your server. Not getting anywher near any of mine .....
Reply With Quote
  #8  
Old 07-21-2006, 04:51 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Digg and quite a few other websites use such a script as well. It either is not as resource intensive as it may seem or they all have powerful enough servers to not have to worry about it .

If you're on a cluster or a load balanced setup, you probably wouldn't have anything to worry about.
Reply With Quote
  #9  
Old 07-21-2006, 05:52 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaintDog
Digg and quite a few other websites use such a script as well. It either is not as resource intensive as it may seem or they all have powerful enough servers to not have to worry about it .

If you're on a cluster or a load balanced setup, you probably wouldn't have anything to worry about.
Which leaves the other 99.9% who's sites would come to a crawl.

This kind of thing is what gives AJAX a bad rap. The purpose of AJAX is to give the end user interactive feedback as close to realtime as possible. To simulate the look and responce of a desktop application.

It is not designed as a non interactive page refresher. It's a good thing they don't release it.
Reply With Quote
  #10  
Old 07-21-2006, 07:02 PM
Guest210212002
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Trana
As Jump said, this is not what AJAX is for.
The beauty of coding is that it can be "for" whatever you want it to be.

Those guys (and myself) obviously think that's a pretty good use of AJAX.
Reply With Quote
Reply


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 04:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04383 seconds
  • Memory Usage 2,246KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete