With WordPress 3.3 also jQuery and all its modules have been aligned. Now it is possible to access the new list of the modules of the latest release 3.3, such as the autocomplete. Here is a snippet for a good inclusion:
1 2 3 4 5 6
| / / Load modules that WordPress for us preparatory to the script "MyScript.js" array ( 'jquery-ui-slider' , $ Deps = array ('jquery-ui-slider', 'Jquery-ui-datepicker', 'Jquery-ui-autocomplete' ); , 'js/myscript.js' , $deps , 1 . 3 . 4 , true ) ; wp_enqueue_script ('key', 'js / MyScript.js', $ deps, 1 3.. 4, true); |
Continued ...
The calendar widget for jQuery UI , the so-called DatePicker , allows many settings, including the one to decide a range of years to show in the drop-down menu.
Continued ...
Verify the existence of an element in the DOM
There will ever need to check the existence of an element of the DOM. With jQuery could be spontaneously try:
Continued ...
Let me show you how to implement a simple Slideshow of images with very few lines of code, using jQuery .
This technique can be implemented on any type of website, the important thing is to include the library jQuery . I used this technique to a site built in WordPress , developed in a few hours for an event.
Continued ...
jQuery is up to version 1.4! In addition to several new features and the "usual" rewrite of the code, all documentation has been revised in a very readable than before. impostato a _blank ! But we see the issue of this post; problem: add, using jQuery, a class of all tags a possessing the attribute target set to _blank !
Continued ...
Two overlapping elements of the HTML DOM, both sensitive to an event click , suffer the age-old problem of the propagation degi events between the layers of the DOM itself: the so-called event bubbling. This behavior (which is also found in other development environments: See Actionscript 3.0: MovieClip MovieClip over ) is in itself useful in many cases.
Continued ...
It was released right now (thanks to alert the author Michael JI Jackson ) release 3.0 beta Shadowbox.js . In addition to the new site design here is the most important changes prior to this release:
Continued ...
You can set the options in a dialog() jQuery UI in a comprehensive manner, so that they affect all dialogues that will open. This is useful for not continually repeat the same indentation settings. To do this you can choose two ways:
Continued ...
In the latest revision of jQuery UI was eliminated the option shadow which allowed to eliminate the shadow around the dialog. The option, strangely, still plays its role but, in contrast, produces a Javascript error and prevents the movement of a dialogue:
Continued ...
While waiting for the official release of jQuery UI 1.7 (Yeah, the jQuery development team decided that it will release as version 1.7, due to confusion), which may be one option to remove the close button of a box, here's how quickly resolve the problem with the current 1.6rc6:
Continued ...
Latest Comments
Mark : @ Mark: Thanks for the answer. For example, if you have a code to save / use the folder ...
Mark : Thanks for the answer. For example, if you have a code to save / use the folder ...
Giovambattista Fazioli : @ Mark: in principle, absolutely, a lot depends on how and what to download. La. ..
Mark : Hello, good guide! I wanted to ask, you can use the same code to run a sql database? Instead of ...
Joseph : Hi I wanted to ask you how you can do in the post I uploaded a gallery of 50 images, for example, ...