Bin-Blog logoBin-Blog

Learn about the latest in Web Development – as soon as I do.

Archive for the ‘JavaScript’ Category

Link Code Insert: A GreaseMonkey UserScript

By Binny V A • Jul 20th, 2009

Link Code Insert inserts the HTML code for creating a link at the active element location when the user presses Ctrl+Alt+A. I use it a lot when I am writing a comment and want to add a link. Just select the text you want to link and the userscript will add the HTML code ‘<a href="">‘ before the selected text and a ‘</a>‘ after it.



Gallifrey Image Gallery WordPress Plugin

By Binny V A • Jul 15th, 2009

Gallifrey is an image gallery WordPress plugin based on the Galleriffic jQuery plugin. It will replace the standard wordpress gallery when you activate it. You don’t have to change the code of all the earlier galleries.



JSL – a New JavaScript Library

By Binny V A • Jul 20th, 2008

Yesterday, I published a new JavaScript Library – JSL. It borrows many ideas from the famous jQuery library.
Download

Packed Version – 13 KB
Source – 38 KB

Features
The Standard Stuff…

CSS DOM Selectors
Ajax Functions
Event Handling is abstracted
Ability to change style of an element.
Extendable by Plugins
Supports all Modern Browsers
And more…

And then some…

Function Chainability
Entire Library is 13 KB(un-gzipped)
Special handlers [...]



Hello Script For JavaScript

By Binny V A • May 22nd, 2008

The next language to get the Hello Script treatment is JavaScript – my favorite language. Before we go any further, here is the definitions for Hello Script and JavaScript – just to make sure that we are on the same page…

Hello Script
‘Hello Script’ is a file that contains the most commonly used elements of a [...]



URL Lister – My First Firefox Plugin

By Binny V A • May 7th, 2008

I just released my first firefox plugin – URL Lister. It shows the URLs of all the open tabs in a textarea so that they can be copied easily.
Download/Install
Install URL Lister
If you have installed it, consider rating it or reviewing it at Firefox plugins sandbox. Go to the public page for URL Lister and write [...]



Keyboard Shortcuts JavaScript Library

By Binny V A • Jul 21st, 2007

I have created the second version of the JavaScript Shortcut Library. It is one of my more popular scripts. This script eases the work involved in making shortcuts in JavaScript.
Despite the many JavaScript libraries that are available today, I cannot find one that makes it easy to add keyboard shortcuts(or accelerators) to your javascript app. [...]



Success/Error Design Pattern For Ajax

By Binny V A • Jun 22nd, 2007

‘Success/Error’ design pattern for Ajax requests is a JSON encoded string in a specific format – each response has a minimum of two elements in it – ie ’success’ and ‘error’ – like this…
{
“success”:”Task done successfully”,
“error”:false
}
OR
{
“success”:false,
“error”:”Database Connection Error!”
}
This method is used extensivly in Nexty. Almost all Ajax response in Nexty ares in this format.
Since this [...]



Google Gears – Offline Functionality for Web Apps

By Binny V A • May 31st, 2007

There has been many ideas about a offline storage mechanism for web applications. Dojo implemented this in its Library. Firefox 3 promises this. Now we have a new arrival in this area – Google Gears. Unlike Dojo’s implementation, Gears require an extension for it to work.
Google Gears is an open source browser extension that lets [...]