Articles Tagged 'jQuery'


WordPress 3.3: now all jQuery

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 ...

Fixed bug: jQuery UI on the calendar year range

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 ...

jQuery snippets

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 ...

Very short snippet: slideshow 10 lines of code

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 ...

How to select a group of tags that do not have children of a certain type

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 ...

Prevent the spread of events with jQuery

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 ...

Shadowbox 3.0 beta

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 ...

Set the options of dialogue jQuery UI in total

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 ...

Eliminate the shadow effect from dialogue jQuery UI

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 ...

How to hide the close button of a dialog jQuery UI

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 ...