Update Page Live w/o whole page refreshing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
elinews
Forum Commoner
Posts: 38
Joined: Tue Aug 14, 2007 7:18 pm

Update Page Live w/o whole page refreshing

Post by elinews »

How in the world does NFL do this with the live game stats? I would love to use this feature on one of my websites,
Thanks.
kr9091
Forum Newbie
Posts: 8
Joined: Sun Sep 16, 2007 4:00 pm

Re: Update Page Live w/o whole page refreshing

Post by kr9091 »

elinews wrote:How in the world does NFL do this with the live game stats? I would love to use this feature on one of my websites,
Thanks.
Haha I'm wondering the same thing. I think they use AJAX.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

If you Get Firebug for Firefox, I believe it'll show you the AJAX requests, if that is indeed the technology that they are using (which it likely is).
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

Yup, its just Ajax grabbing Javascript Arrays.

I took a screen shot of what one thing Firebug shows.

http://zoxive.com/imgs/Screenshot-10.png
elinews
Forum Commoner
Posts: 38
Joined: Tue Aug 14, 2007 7:18 pm

Post by elinews »

Ah - cool. Thanks guys. Looks like I'm off to learn AJAX.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

elinews wrote:Ah - cool. Thanks guys. Looks like I'm off to learn AJAX.
It's nothing new to learn, really. :) Just an aggregate mix of javascript and returned data.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Do yourself a favour and check out a library that has ajax methods, no sense re-inventing the wheel. I obviously recommend jQuery.

That being said, it's always good to know what's happening behind the scenes.
elinews
Forum Commoner
Posts: 38
Joined: Tue Aug 14, 2007 7:18 pm

Post by elinews »

Sweet. Thanks guys. What exactly are the possibilties of AJAX?
Post Reply