Click here to Skip to main content
15,886,530 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I read about jquery and JavaScript and I was asking my self the next question:
What is it about jquery that turns it to be a cross browser while java-script is not?

Can someone please explain to me what turns Jquery to be cross browser language and why JavaScript isn't?

It means that every code that i write with jquery should be supported in all browsers? including internet explorer 6-7-8?

Include all Jquery plugins?
Please explain.
Posted
Updated 17-Feb-13 7:58am
v3
Comments
Sergey Alexandrovich Kryukov 16-Feb-13 19:28pm    
There is no such thing as "Java script"! And jQuery is no a language. The question makes no sense.
—SA

First of all, jquery is not a language. Jquery is a javascript library, meant to ease your life - so you don't have to deal with things like cross-browser issues.
The people writing jquery wrote javascript code that handles the differences between browsers. But even jquery isn't supposed to support oldest versions... but it does. Check here: http://jquery.com/browser-support/?rdfrom=http%3A%2F%2Fdocs.jquery.com%2Fmw%2Findex.php%3Ftitle%3DBrowser_Compatibility%26redirect%3Dno[^]
Be aware, that not all plugins are written with the same precaution as the main stream.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Feb-13 19:30pm    
My 5. You could also add that there is no such thing as "Java script". Java is not a scripting language and has nothing to do with JavaScript. :-)
—SA
Zoltán Zörgő 17-Feb-13 2:11am    
Thanks. And there is no "java-script" either :)
Sergey Alexandrovich Kryukov 17-Feb-13 11:35am    
Never heard of such beast. :-)
—SA
JQuery is indeed a JavaScript library but does not offer cast-iron guarantees to cater for cross-browser issues. It depends on the browser(s) you wish to use your code on and what exactly you are using JQuery to achieve.

There are other libraries which may help, but again it depends on what you are trying to do.

You will need a knowledge of JavaScript if you intend to use JQuery for anything but the most basic of tasks. I would recommend "JavaScript The Definitive Guide" by David Flanagan if you want to master JavaScript. He also touches on JQuery.

People mixing up the terms Java and JavaScript is not unheard of. JavaScript was originally called LiveScript but was renamed due to the popularity of Java.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900