aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery advantages over javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery advantages over javascript" Watch "jQuery advantages over javascript" New topic
Author

jQuery advantages over javascript

Shashank Agarwalg
Ranch Hand

Joined: Mar 03, 2010
Posts: 110

Hey is their any advantages of jQuery over javascript Or this is only diffrent way to write. And how can i explain jQuery.


Trying to win the world.....................
SCJP 6.0 , SCWCD/OCPJWCD 5, BlackBerry Developer
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

I believe this might help you.

http://jquery.com/
http://en.wikipedia.org/wiki/JQuery
http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Shashank Agarwalg
Ranch Hand

Joined: Mar 03, 2010
Posts: 110

yup this links has the nice info. but what we can say in easy and simple way. if interviewer ask to me
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

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...


  • [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
    Shashank Agarwalg
    Ranch Hand

    Joined: Mar 03, 2010
    Posts: 110

    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.
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    It's not in *place* of JavaScript, it *is* JavaScript--it's just a library.
    Shashank Agarwalg
    Ranch Hand

    Joined: Mar 03, 2010
    Posts: 110

    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
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    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

    Joined: Mar 03, 2010
    Posts: 110

    Thanks . means i can use jQuery code in ajax code
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    ... Ajax code *is* JavaScript code.
    Shashank Agarwalg
    Ranch Hand

    Joined: Mar 03, 2010
    Posts: 110

    ok... ajax means asynchronus java script and xml. thanks again
    Deepak Bhasin
    Greenhorn

    Joined: Mar 30, 2010
    Posts: 5
    JQuery is unobtrusive JavaScript and it has great extent for cross browser compatibility.
    Syntax is short and sweet.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: jQuery advantages over javascript