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:
Archive February, 2009
Set the options of dialogue jQuery UI in total
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:
Read, write and delete cookies in Javascript
Read
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | / ** * Returns the value of a cookie * * @ Example Var res = * getCookie ('variable'); * * / name ) { getCookie function (name) { document. cookie . indexOf ( name + "=" ) ; var start = document. cookies. indexOf (name + "="); start + name . length + 1 ; var len = start + name. length + 1; ! start ) && ( name != document. cookie . substring ( 0 , name . length ) ) ) return ( null ) ; if ((! start) & & (name! = document. cookies. substring (0, name. length))) return (null); start == - 1 ) return ( null ) ; if (start == - 1) return (null); document. cookie . indexOf ( ";" , len ) ; var end = document. cookies. indexOf ("", len); end == - 1 ) end = document. cookie . length ; if (end == - 1) end = document. cookies. length; unescape ( document. cookie . substring ( len , end ) ) ) ; return (unescape (document. cookies. substring (len, end))); } |
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 solve the problem with the current 1.6rc6:
Very short snippet: shuffle () in Javascript and Actionscript
In PHP there is a handy feature called shuffle() that allows you to mix an array (see Very short trick: take random elements from an array in PHP ). An excellent version of the javascript I found here . Slightly revised the code below:
Very short trick: adjust the dates by MySQL
. Sometimes you find it impossible to change the time setting up a Web Server or MySQL to work on a table where a field TIMESTAMP is set to ON UPDATE CURRENT_TIMESTAMP . So it becomes necessary, in the face of a select, adjust the time retrieved with the correct time zone. For example, if our server is located in Los Angeles, with a time zone 9 hours back, simply use:
1 2 | campo_timestamp , INTERVAL 9 HOUR ) AS `local_timestamp` SELECT DATE_ADD (campo_timestamp, INTERVAL HOUR 9) `AS` local_timestamp FROM mytable |
è la stessa data 9 ore avanti. The field campo_timestamp contains the actual date of the server and the alias local_timestamp is the same on 9 hours ahead.
Solve the bug of jQuery datapicker that disappears behind the dialog
con datepicker , quest'ultimo scompare dietro al dialog a causa di un errata impostazione dello zIndex . By opening a dialog with jQuery UI , which is set inside a field input with datepicker , it disappears behind the dialog because of an incorrect setting of the zIndex . , dopo l'impostazione del nostro campo input a datapicker , le seguenti righe di codice: To solve it just plug in the event open the dialog , after the setting of our field input to datapicker , the following lines of code:
Very short snippet: Currency format in PHP
. PHP provides two convenient functions to format (and print) Currency: money_format() and number_format() . The first can be used in conjunction with setlocale() to set the format type based on your country, for example:
Very short snippet: PHP isset_post ()
Often having to check if a variable has been sent with the POST, and if not, assign a default value. Instead of using the syntax:
1 |
WordPress: customize the navigation between the posts
WordPress offers many features to navigate through the various posts and pages forward and back. These are used within the themes, often in a completely interchangeable, although they contain some differences. This, in fact, create much confusion in the choice of the function to use. Here are some notes:






Latest Comments
Giovambattista Fazioli : @ paso: absolutely. Simply identifying the field [cci] input [/ cci] you want to ...
paso : Hello I would like to request a service, you can use the datepicker with cform7 I spiegp best I can implement ...
Simon : It annoys disturbed again and use that space for these things ... however it does not work ...
Giovambattista Fazioli : @ Barbara: If you mean the bottom to start writing down what it depends on where ...
Barbara : Hello, is very interesting but how do you write at the bottom instead of the above? Thanks