Category Archives: JavaScript

Just Another URL Encoder/Decoder

There are so many online URL encoder/decoder out there, but nothing stops me from creating yet another one and pollute the web (j/k). Anyway, this is just a very simple tool written in JavaScript that can be used to encode/decode … Continue reading

Posted in JavaScript, Web Development | Leave a comment

Setting Session Only Cookie via JavaScript

So you’re pretty good at cookies in PHP, then you suddenly wanted to manage cookies via JavaScript. Few days ago, I got a chance to work on cookies and JavaScript but as usual, our beloved Internet Explorer blocks my way. … Continue reading

Posted in Internet Explorer, JavaScript | Tagged , , | 7 Comments

Showing Date Span – PHP and JavaScript Version

It is common to see date/time span in feeds and on most social networking sites. If you don’t get it, it is the line that says “An hour ago”, or “Yesterday”, or “21 minutes ago” sort of for human friendly … Continue reading

Posted in JavaScript, php | Tagged , , , , , , | Leave a comment

Scale Image – Lightbox – Another Javascript Hack

Okay, so I’ve hack the source again. This time, I need to dynamically resize / scale the image shown by lightbox to a certain width and for a maximum compatibility, I modified the source to show a scaled image when … Continue reading

Posted in JavaScript | Tagged , , , , , , , | 1 Comment

Galleriffic Scale Images – A Quick Hack (jQuery)

Forgive me for I have sinned. I have edited the jQuery gallerific plugin to give me the scaling of image capability. Below are the code changes that I made. I found out that I need to put in on two … Continue reading

Posted in JavaScript | Tagged , , , | 11 Comments

jQuery Draggable – Prevent Click Event

jQuery and jQuery UI has cool stuff that makes drag and drop easy with jQuery draggable and jQuery droppable if you want the droppable functionality. With draggable however, if the element or element’s child is capturing click events or an … Continue reading

Posted in JavaScript | Tagged , , , , , , , | 6 Comments

Stumble Upon Bookmarklet

I’m a stumble upon user and I used it mainly for bookmarking important sites such as related to web development or anything interesting. I have installed a bookmarklet into my Google Chrome bookmark toolbar and it works this way: If … Continue reading

Posted in JavaScript | Tagged , , , , | Leave a comment

JavaScript – Confirm Before Window is Closed

In desktop applications, it is common to have windows that cannot be closed – example: you must save first before closing the window. This is usually done by disabling the close button or setting some application parameters so that it … Continue reading

Posted in JavaScript, Web Development | Tagged , , | 1 Comment

JavaScript Fun – Swirling Images Around

I’m so bored here and can’t make any codes. Suddenly my friend sends me some trick. When completed, it swirls all images around the page. So I tried it. First, it requires that you use Google Images search, then paste … Continue reading

Posted in JavaScript | Tagged , , , | Leave a comment

JavaScript – String Replace

I should not let this pass by. I am recently playing with some JavaScript string manipulation, especially the string replace. All I want is a simple string operation that will replace all occurrences of a certain piece of string contain … Continue reading

Posted in JavaScript | Tagged , , , | 2 Comments