By Jack Franklin
- Use jQuery's strong instruments to dynamically replace content material in your website, together with DOM manipulation.
- Extend jQuery's functions by means of writing your personal plugins on best of the framework.
- Animate components and construct your individual jQuery slider.
- Employ most sensible practices and keep away from universal error made through rookies.
Read Online or Download Beginning jQuery PDF
Use Perl with COM innovations in management and DevelopmentDiscover why Perl is the ideal language for home windows scripting and structures management. writer Scott McMahan explains the Microsoft inspiration of automation, and indicates you ways you should use Perl with COM strategies to achieve it. store effort and time in management and improvement.
- Developing Backbone.js Applications
- You Don't Know JS: Scope & Closures
- Sencha Touch 2 Up and Running
- Node.js in Action
Additional info for Beginning jQuery
The jQuery home page Click the large Download button on the jQuery home page to download the jQuery source. If you click Download only to see a large amount of code, but nothing downloads, you should right-click and select Save Target As. There are two compression-level options listed above the Download button: u Production (32KB), Minified and Gzipped u Development (252KB), Uncompressed Code 17 CHAPTER 2 N THE BASICS OF JQUERY Unless you want to study the jQuery source in detail for every project that you use jQuery, always pick the Production version.
I much prefer using a method to a pseudo-selector. I think they read much better and it’s easier to see what’s going on. This is due to the fact that when you use the method, it’s not contained within the selector. This means when you’re scanning through the code, the call to the method stands out more because it’s not within the selector. There’s also another reason, though. Newer, more modern browsers such as Google Chrome and Mozilla Firefox support two methods that are very powerful: querySelector() and querySelectorAll().
The ++ operator is used, which is a shortcut for i = i+1. u If i < 10: u Set the value of the paragraph to be the current value of i. u Call toggleBox again, passing in i. And with that, you can refresh your page and see a box that will fade in/out five times before stopping. You’ll also see the paragraph show the number of times it happened (see Figure 2-6). Figure 2-6. The fade in/fade out the box results 27 CHAPTER 2 N THE BASICS OF JQUERY But hang on. Why does it show 9, and not 10? It has, in fact, faded in/out ten times.
Beginning jQuery by Jack Franklin