vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Check out this absolutely excellent use of AJAX (https://vborg.vbsupport.ru/showthread.php?t=121639)

Guest210212002 07-19-2006 11:57 PM

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.

Code Monkey 07-20-2006 12:13 AM

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.

Trana 07-20-2006 01:09 AM

As Jump said, this is not what AJAX is for.

Kirk Y 07-20-2006 01:36 AM

Still looks pretty nifty though. :classic:

Smiry Kin's 07-20-2006 06:31 AM

could look better i think..

Guest210212002 07-20-2006 06:52 PM

/me still thinks it's nifty. :P

Paul M 07-20-2006 09:35 PM

Woah, way to kill your server. Not getting anywher near any of mine .....

SaintDog 07-21-2006 03:51 PM

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.

Code Monkey 07-21-2006 04:52 PM

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.

Guest210212002 07-21-2006 06:02 PM

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. ;)


All times are GMT. The time now is 11:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02314 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete