




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
jQuery is a popular JavaScript library that helps developers write JavaScript code more easily. jQuery is designed to simplify HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery make web development simpler by providing easy-to-use methods for common tasks.
Typology: Study notes
1 / 103
This page cannot be seen from the preview
Don't miss anything!
● JavaScript frameworks - client side development ● Frameworks like jQuery - fill gap between standard and nonstandard browsers ● jQuery is leaner, faster loading, loaded with features making JavaScript developer easier ● Now it has become primary driving force for both web development and application development ● One of jQuery’s biggest innovations was its fantastic DOM querying tool using familiar CSS selector syntax (sizzle) ● Another feature that makes jQuery web development very easy and attractive is its support for chained method calls.
$('
') .addClass('selected') .attr({ id : 'body', title : 'Welcome to jQuery' }) .text("Hello, World!");There are several ways to start using jQuery on your web site. ● Use the Google-hosted/ Microsoft-hosted content delivery network (CDN) to include a version of jQuery. ● Download own version of jQuery from jQuery.com and host it on own server or local filesystem. Note: All jQuery methods are inside a document-ready event to prevent any jQuery code from running before the document is finished loading (is ready).
$(selector).action() ● A $ sign is to define/access jQuery ● A (selector) is to “query (or find)” HTML elements in html page ● A jQuery action() is the action to be performed on the selected element(s) Example:
● (^) Its simplistic, chainable, and comprehensive API has the capability to completely change the way you write JavaScript ● (^) With the goals of doing more with less code, jQuery really shines in the following areas: ○ (^) jQuery makes iterating and traversing the DOM much easier via its various built-in methods. ○ (^) jQuery makes selecting items from the DOM easier via its sophisticated, built-in, and ubiquitous capability to use selectors, just like you would use in CSS. ○ (^) jQuery makes it easy to add your own custom methods via its simple-to-understand plug-in Architecture. ○ (^) jQuery helps reduce redundancy in navigation and UI functionality, like tabs, CSS, and markup-based pop-up dialogs, animations, and transitions, and lots of other things.
● (^) Other JavaScript frameworks - Yahoo UI, Prototype, SproutCore, Dojo, and so on ● (^) jQuery frameworks erased lined between browsers (comprehensive API for event handling) ● (^) Other issues- cutting edge CSS properties & CSS gradients for example
● (^) John Resig ● (^) www.ejohn.org ● (^) resides in Brooklyn, New York ● (^) Chief Software Architect at Khan Academy ● (^) John still helps with defining the direction and goals of the jQuery project, but jQuery has largely been transitioned to a large team of people ● (^) https://jquery.org/team/
● (^) www.jquery.com ● (^) A compressed production version (for production) ● (^) An uncompressed development version (for development)
Programming Conventions Markup and CSS Conventions ● (^) When selecting id and class names, make sure that they are descriptive and are contained in a namespace. You never know when you might need to combine one project with another— namespaces help you to prevent conflicts. ● (^) When defining CSS, avoid using generic type selectors. Make your CSS more specific. This can also help with preventing conflicts. ● (^) Organize your files in a coherent manner. Group files from the same project in the same folder; separate multiple projects with multiple folders. Avoid creating huge file dumps that make it difficult to locate and associate files.