Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: jQuery
is there any easy converting tools for convert java script to jQuery
Posted 7-Feb-12 16:47pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

JQuery is not a language in and of itself, it is a javascript library. You don't "convert" javascript to jquery because jquery is already javascript.
  Permalink  
Comments
Md. Mahfujul at 8-Feb-12 0:06am
   
Thank u
SAKryukov at 8-Feb-12 0:25am
   
My 5. I would also add: "Java script" does not exist because Java is not a scripting language. Should we even explain that Java and JavaScript are not related at all?
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Jquery is a javascript library and it is a neat way of unobtrusive DOM scripting. So essentially it is a better way of writing javascript code. I think what you meant by 'convert' here is that - you already have a web application that has a lot of javascript written in the 'old way' - and now you want to use jQuery. If my assumption is right about your question, unfortunately there are no tools (atleast I am aware of) which will do that 'conversion' for you. It is more about learning the art of jQuery and then improving and refactoring your javascript code to use jQuery style of doing things.
 
If I can give an analogy to understand it better, you can write a program in the old fashioned way where there is just one class and hundreds of variables and functions in that - which does the job for you but is a nightmare in terms of maintenance, and you can write the same program using Object oriented methodologies. There are no tools to convert the old program to use OOPS methodologies - it is about learning OOPS and then refactoring and improving your code.
 
Probably I can give you a reference of some best practices of how not to write javascript, and then when you learn more about jQuery, you yourself will find out innovative and improved ways for writing javascript using jQuery library.
 
Refer this link for some jQuery examples and best practices
JQuery Examples and Best practices[^]
 
In-case you are totally new to the whole jQuery, please see SA's solution #3 for some references about it.
  Permalink  
v3
Comments
SAKryukov at 8-Feb-12 0:29am
   
All right, informative and useful, my 5, but I wish you also referenced some original sources. Please see my answer.
--SA
Abey Thomas at 8-Feb-12 0:32am
   
Yes you are right..! I thought it was easily available :) Updated.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Just in case, as nobody gave you original references to jQuery. This is trivial, but — something you need to know very well:
 
http://jquery.com/[^],
http://docs.jquery.com/Main_Page[^],
http://en.wikipedia.org/wiki/JQuery[^],
http://en.wikipedia.org/wiki/JavaScript[^],
http://en.wikipedia.org/wiki/ECMAScript[^].
 
—SA
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 420
1 _Amy 235
2 Andreas Gieriet 180
3 Peter Leow 175
4 Dave Kreskowiak 155
0 OriginalGriff 7,540
1 Sergey Alexandrovich Kryukov 6,597
2 Maciej Los 3,849
3 Peter Leow 3,653
4 CHill60 2,712


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 8 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100