November 16th, 2008
If you love to design for Web 2.0, then you absolutely need AJAX and cute professional looking icons. One of the icons commonly needed for an AJAX site is the ‘Loading’ or ‘Progress bar icons’ that tells the visitor that the content is being loaded.
Ofcourse you can rip it off from any of the thousands of sites that use AJAX, but what if you could:
- Choose from35 varieties
- Color of your choice, that goes well with color scheme of your website or application
- And all thisfor FREE and within 5 sec. of time!
If you don’t believe me, visit AjaxLoad.info
No Comments » |
GFX, JavaScript/AJAX, Web designing |
Permalink
Posted by Rohan Shenoy
November 5th, 2008
While the utility of a pen drive cannot be undermined, it could be annoying to just look upon as it writes data to it. To improve the write speed, archive the files into single archive and write this archive file to your pen drive.
You can enjoy significantly improved speeds as a result of:
- Reduction in size of data to be written to the pen drive.
- The archive is treated as a single file. If you don’t archive the contents, the file system has to navigate through every directory to read its structure and then reproduce it on the pen drive. With archives, the filesystem shall not waste time bothering for the directory structure.This whole process of reproducing directory structure is such a waste of time and other resources, esp. when you have hundreds of file, each less than 5 KB!
2 Comments |
General |
Permalink
Posted by Rohan Shenoy
November 4th, 2008
Inverting checkbox selection seems a fairly common task needed with forms. While there are many already available, if you go through the below code, you can yourself tell the difference between this and other ones.
<!-- part of the HTML form-->
<fieldset id="all_checkboxes">
<input type="checkbox" name="c1" value="1" checked="checked" /> Item 1 <br />
<input type="checkbox" name="c2" value="1" checked="checked" /> Item 2 <br />
<input type="checkbox" name="c3" value="1" /> Item 3 <br />
<input type="checkbox" name="c4" value="1" /> Item 4 <br />
</fieldset> |
var fieldset_of_all_checkboxes=document.getElementById("all_checkboxes");
var array_of_checkboxes=fieldset_of_all_checkboxes.getElementsByTagName("input");
for(checkbox in array_of_checkboxes)
{
array_of_checkboxes[checkbox].click();
} |
With this method, you don’t have to find if the checkbox is in checked or unchecked state!
No Comments » |
JavaScript/AJAX |
Permalink
Posted by Rohan Shenoy