Category Archives: Javascript

PHPSpeedy – Compressing and Optimizing Javascript Files

PHPSpeedy is to merge all the JS files of a webpage to a compressed file whose name changes if you edit one of original JS files (in order not to use the old cached version of the user’s browser). http://aciddrop.com/php-speedy/ … Continue reading

Posted in Javascript, Web Development | Leave a comment

Javascript / Jquery – Cropping Images

http://deepliquid.com/content/Jcrop.html

Posted in JQuery, Javascript | Leave a comment

Javascript – Embedding Flash Files / Videos & Flash Detection

SWFObject – Standard de facto. It takes the file to embed as an input. If you are in a different situation, you could use: http://www.featureblend.com/javascript-flash-detection-library.html http://jquery.lukelutman.com/plugins/flash/

Posted in Javascript | Leave a comment

Javascript – Carousel

http://sorgalla.com/jcarousel/

Posted in JQuery, Javascript | Leave a comment

JQuery: Example of The Structure of a File That Will Manage a Page

This is an example of the Structure of a file that will manage a page. This is also a good example on how to manage dropdown boxes. $(document).ready( function () { // shows the tags related to the selected category … Continue reading

Posted in JQuery | Leave a comment

Javascript XHTML Complaint

<script type=”text/javascript”> /* < ![CDATA[ */ // content of your Javascript goes here /* ]]> */ </script>

Posted in Javascript | Leave a comment

Javascript: Check / Uncheck All The Checkboxes Of a Certain Group

/* * It checks all the checkboxes of a certain group (that shares a name like this: checkboxes[]) * * @param the Javascript Element that contains all the checkboxes of a certain group * * Example of usage: * var … Continue reading

Posted in HTML / CSS, Javascript | Leave a comment

Fix IE6 Layout Bugs With Javascript

http://sourceforge.net/projects/ie7/ http://dean.edwards.name/IE7/

Posted in HTML / CSS, Javascript | Leave a comment

Javascript – Confirmation Of a Link

<a href=”#” onClick=”if( confirm(‘Are you sure?’) ) document.location=’http://www.google.it/index.php?del={$points[index].pointID}’; return false;”>delete</a>

Posted in Javascript | Leave a comment

CSS: Make a Table Row Appear and Disappear (Cross Browsing)

To make it disappear (as usual): xxxx.style.display = “none”; To make it appear: xxxx.style.display = “”; The last trick is because, this: xxxx.style.display = “table-row”; wouldn’t work in IE6 and IE7

Posted in HTML / CSS, Javascript | Leave a comment