Archive

Archive for October, 2008

TinyURL alternative

October 10th, 2008

http://www.time-safe.com provides URL shortening, but also allows you to specify passwords and time ranges for the URL forwarding.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Google] [StumbleUpon]

Useful stuff

Delete a tag in Javascript

October 9th, 2008

I use with with AJAX library to completely remove a DIV tag ( or whatever )


function removeTag(tag){
field = document.getElementById(tag);
field.parentNode.removeChild(field);
}

function removeAllChildren(field){
if ( field.hasChildNodes() )
{
while ( field.childNodes.length >= 1 )
{
removeAllChildren(field.firstChild);
field.removeChild(field.firstChild);
}
}
}

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Google] [StumbleUpon]

Javascript