July 29, 201016 yr Hi All I have been given the task of learning Javascript/Jquery. I will start learning javascript and then move onto jQuery. I already have limited knowledge of both and have used them in my sites to some degree. The question is: To what extent/depth do I look into javascript before I make the jump to JQuery. At what point when learning javascript do I say "right I have enough raw javascript knowledge, now its time to move to JQuery". When ever you read articles its either Javascript only or its Jquery.
July 29, 201016 yr What an odd task to be given. Learning a specific script I can understand, but to be tasked with learning JavaScript/jQurey in general... A knowledge of JavaScript will allow you to understand what jQuery is doing. There is no upper limit on the knowledge of JavaScript that will be useful, but there are a few things that will help you understand what's happening: Make sure you have a sound understanding of how scope works in JavaScript -- it's really not that complicated, but you'll need to know which variables are working. Additionally, be aware that jQuery favours annonymous functions which means that a variable in one function may not be available in another. Wrap your head around JavaScript's this keyword. Whenever jQuery adds an event, the this keyword is always a reference to the element the event is bound to. The documentation on the jQuery website explain this a little better. The only other thing that I can think you should investigate is DOM Scripting, since jQuery is very DOM-centric. Hope this helps
July 30, 201016 yr Author Thats brilliant. Thanks for that. Basically I want to be able to code my own javascript/Jquery. Understand it enough to build my own plugins instead of looking for other peoples stuff and copying that. I think as the web moves forward with HTML 5, javascript is going to become more important. What do you think?
Create an account or sign in to comment