-2

In my project i have to create an Accordion.which is better to use Jquery or Ajax

1
  • 5
    I think first you have to learn what is the difference between Ajax and jQuery. Basically Ajax is some kind of technique whereas jQuery is a JavaScript framework that makes it easier to use Ajax (among other things). May 13, 2010 at 11:46

4 Answers 4

2

AJAX is for server-side requests, to get or send new data for your page (without a full page reload), it's an alltogether different concept.

For the accordion, I think you're looking for the jQuery UI accordion, though there are many options out there.

2

That's a bit like asking "What should I use to get to work today? A car or an accelerator pedal?"

AJAX is a general term that refers to the techniques that make use of client-side scripting (e.g. JavaScript) to communicate with the server between page-loads.

jQuery is a framework (a set of libraries and tools) that make writing JavaScript simpler and easier. It includes facilities for using AJAX.

1
  • Watch out @Will, @sundowatch might tell you that jQuery is a library if you're not careful.
    – Finbarr
    May 13, 2010 at 17:42
1

Hmmm, Apples, Hammers, or music? how to decide?

2
  • 3
    Hammers, then you can make every problem a nail. May 13, 2010 at 11:50
  • Apples, hammers and music all suck! You want horses!
    – bobince
    May 13, 2010 at 11:59
0

AJAX, or Asynchronous Javascript and XML, is an umbrella term for the technologies and methodologies involved in loading data from the server without a page request.

jQuery is a Javascript library.

Javascript is a client side scripting language.

As @Nick said, the jQuery UI accordion plugin is a good choice for the accordion.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.