Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Is This Code Too Old?

Hey guys,

I have found this dynamic AJAX page loader that is perfect for a project that I am doing.

The only thing that's stopping me from using it is, it was last updated in December 2005 (Yikes!). I always feel uncomfortable using code that is older than 12 months.

Here's the link to the AJAX page loader in question.

http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

If someone knows of a more up to date version of the same thing I would be extremely thankful!

Many thanks

Stu :)

1 Answer

Derek Etnyre
Derek Etnyre
20,822 Points

That code is using some older techniques.

One alternative is to use Jquery which makes ajax calls easier to do.

This web page has an example: http://css-tricks.com/dynamic-page-replacing-content/