• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jQuery advantages over javascript

 
Ranch Hand
Posts: 110
Android Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey is their any advantages of jQuery over javascript Or this is only diffrent way to write. And how can i explain jQuery.
 
Shashank Agarwalg
Ranch Hand
Posts: 110
Android Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yup this links has the nice info. but what we can say in easy and simple way. if interviewer ask to me
 
Sheriff
Posts: 67749
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, jQuery is JavaScript, so it's not really one or the other. But there are distinct advantages of using jQuery over writing raw JavaScript. These include, but are not limited to:
  • The amount of code you need to write is vastly smaller
  • It handles cross browser differences for you
  • Easy DOM manipulation
  • It presents a single events API
  • Effects such as fading, sliding and more
  • It makes Ajax much much MUCH simpler
  • and so on...

  •  
    Shashank Agarwalg
    Ranch Hand
    Posts: 110
    Android Redhat Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hey very nice info how can we say that it makes ajax simpler can we use jQuery in Ajax code in place of java script.
     
    Author
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    It's not in *place* of JavaScript, it *is* JavaScript--it's just a library.
     
    Shashank Agarwalg
    Ranch Hand
    Posts: 110
    Android Redhat Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Yup i know this is library of javascript i want's to know that can i use this library or jquery syntax in ajax code.
     
    David Newton
    Author
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    You just asked if you could jQuery in place of JavaScript. The answer is no, because jQuery *is* JavaScript. You can use jQuery instead of the default JavaScript/browser support for Ajax (and should, since it's substantially easier, and eliminates the cross-browser headaches).
     
    Shashank Agarwalg
    Ranch Hand
    Posts: 110
    Android Redhat Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks . means i can use jQuery code in ajax code
     
    David Newton
    Author
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    ... Ajax code *is* JavaScript code.
     
    Shashank Agarwalg
    Ranch Hand
    Posts: 110
    Android Redhat Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    ok... ajax means asynchronus java script and xml. thanks again
     
    Greenhorn
    Posts: 5
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    JQuery is unobtrusive JavaScript and it has great extent for cross browser compatibility.
    Syntax is short and sweet.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic