jQuery

$_FILES limitation when uploading files in PHP

Posted by admin on October 14, 2011 at 11:10 am

Along with the “upload_max_filesize” when uploading files with PHP there is another parameter named “max_file_uploads” witch prevent uploading more files that the value of this parameter. Default size of this parameter is 20 and is should be enough for more apps then I can count but today I had to repair a bug in a [...]

jQuery Visual Cheat Sheet

Posted by admin on September 3, 2010 at 10:21 am

If you are like me you “learn from walking” (learn something in time you write a script, an application ). jQuery is a great framework but it become so big that sometimes you can not remember all methods, selectors and basically every stuff  implemented there to make your work easy. For this there are Cheat [...]

jQuery, disable right click browser menu

Posted by admin on August 25, 2010 at 10:15 pm

When working on complex applications with jQuery you get to a point where you need to have your own right click menu. You have the options to disable entire page right click menu or just for a div. Disable for the entire document: $(document).ready(function() {        $(document).bind("contextmenu",function(e){               [...]

jQuery, check witch mouse button had been pressed

Posted by admin on August 25, 2010 at 10:08 pm

The .click is great, but witch button had been pressed? $(document).click(function(e) {    if ((e.button == 0)  && (e.button == 1)){       // was the left button pressed       alert(‘clicked’);    }    if (e.button == 3){       // was the right button pressed       alert(‘click’);   [...]