AJAX – jQuery Content Loading

I’m currently starting to learn AJAX as I can see it being useful in a few projects I’m working on.  The initial drive to do this had been that I was looking to have an online form dynamically update in response to input from a user.  Clearly, this is easy to achieve in PHP, but it involves a page refresh, then needing an anchor to get the user back to the same spot they were at in the page.  This works on a technical level, but it’s a bit clunky for the user.

I recently came across a page that did it without a refresh.  This looked so cool, that I had to find out how it was done!  I quickly realised that it was thanks to AJAX that something like this could happen so smoothly so that’s what started my drive to learn AJAX.

 Now, in order to finish my code that I was working on, I needed to very quickly understand how to do this one cool bit of scripting, so I did a bit of digging.  I came across a a great site by ‘Jamie’ called Nodstrum – A coders playground which had just the entry I was looking for!  If you go to http://nodstrum.com/2007/03/20/jquery-content-loading/, you’ll find an example and the code needed to implement dynamic content loading using AJAX!

Enjoy! 🙂

About The Author


John is a Senior Solutions Engineer for a U.S. IT company, specialising in Software Defined IT Infrastructure. He has an extensive background in IT and spends way too much time sitting at his PC's, making videos for himself and other Internet marketers and dreaming of spending more time boating. He's also passionate about Jesus.

1 Comment

  • Jamie

    10th October, 2007

    Hi John,
    Thanks for the ping-back.
    Just a word of warning about overusing Ajax (coming from a very guilty person).
    Its great for things link submitting forms with reloading the page and showing small amounts of content in tabs, the downfall comes when you over use it, ie making the entire site and its contents show using ajax – it looks great, it just makes it very un-user friendly 🙁

    Anyways, Enjoy the script, glad i could help!