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:
Category 'D'
Eliminate the shadow effect from dialogue jQuery UI
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 resolve 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:
Overloading
Overloading is a very useful feature of some programming languages to objects. However tuti OO languages do not support it, and some of the "implementing" or limited to or different. In general, functions or methods, overloading allows you to create two or more functions / methods that have the same name but accept different parameters, for example:






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