CMS + CSS + JQuery + Ajax = ?

Out of context: Reply #13

  • Started
  • Last post
  • 18 Responses
  • ukit0

    It depends if those banners are all linked in the original page or not. The difference between JQuery and AJAX is something a lot of people get confused with since they are often used together.

    JQuery (like fading in an image) is an animation using Javascript that happens on the front end. It's initiated by adding JQuery Javascript in a SCRIPT tag on the page, or in a linked .js file. So if you hard coded all of your promo banners into the original page created by the CMS - i.e., img1, img2, img3, you could use something like the Cycle plugin linked above to fade them entirely on the client side with JQuery.

    AJAX on the other hand is the process of pulling new info not in the original page from the database, or from a file, without reloading the page (using something called XML HTTP Request). So if you wanted to dynamically pull your banners into the page one by one without hard coding them, you would need AJAX for that. AJAX does not have anything to do with the actual animation.

    • a clear answer with no cynicism or irony or anger...... ahhh refreshing!linearch

View thread