Category Archives: JavaScript

The Language that powers the Client side of the Web and More

different behavior for Prototype JavaScript childElements() in FF and IE

Or now to lose the rest of one’s limited hair    …. I’ve come across a “doesn’t work as expect” issue while working in Prototype 1.6.0.2 JavaScript framework (”Easy Ajax and DOM manipulation for dynamic web applications” for sure!)
1$(’someIdName’).parentNode.childElements()
works fine in FireFox (v3) but not in Internet Explorer ( v6), in particular it seems [...]

Also posted in Ajax, Code, Web | 1 Comment

a GreaseMonkey script for Follow Rank and Follows in Common for Twitter User Profiles

I’ve released a GreaseMonkey script Follow Rank and Follows in Common for Twitter User Profiles which you can use to display the Follows in Common and the Follow Rank for a given users profile page and discover how important they are in your Twitter Social Network.
Similar in aim to FaceBooks “friends in common”, adjusted [...]

Also posted in GreaseMonkey, Social Networking, Web | 1 Comment

Using GreaseMonkey’s persistent data functions as a aged Cache, revised.

In eating my own dog food I have revised, corrected, improved and fixed the code I posted last week. The biggest changes are related to ensuring that all that cached data does not just accumulate and never gets cleared away.
Values set using the “GM_setValue” function are saved in the Firefox preferences back end and [...]

Also posted in Ajax, Code, GreaseMonkey, Web | Leave a comment

Use GreaseMonkey’s persistent data functions as a aged Cache.

GreaseMonkey (Don’t know that GreaseMonkey is the greatest thing since slice bread? See Greasemonkey) has two persistent data function’s, GM_setValue and GM_getValue, which let you set and get values. See Mark Pilgrams excellent Dive Into Greasemonkey : Storing and retrieving persistent data for more details. (even better, go to GreaseSpot and it’s api [...]

Also posted in Code, GreaseMonkey | Leave a comment

JavaScript Function to get the Intersect of 2 Arrays

In mathematics, the intersection (denoted as ∩) of two sets A and B is the set that contains all elements of A that also belong to B.
I needed the javascript array equivalent, so that given an array A = ["a","b","c", "d"] and B = ["b", "d", "e"], getIntersect(A, B) = ["b", "d"]
123456789101112function getIntersect(arr1, arr2) [...]

Also posted in Code, Web | 1 Comment

10 UI Design Patterns You Should Be Paying Attention To

via smashingmagazine we have 10 UI Design Patterns You Should Be Paying Attention To, and they are

Lazy Registration;
Progressive Disclosure;
Forgiving Format;
Clear Primary Actions;
Breadcrumbs;
Account Registration;
Required Field Marker;
Steps Left;
Subscription plans;
Hover Controls;

Every web designer and [...]

Also posted in Code, Web, css | Tagged , , , | Leave a comment

Greasing the bird : enhancing Twitter with GreaseMonkey

GreaseMonkey is an add-on to (primarily, but not only) the Mozilla FireFox web browser that lets you run small (javascript) scripts to modify HTML pages on-the-fly, changing how they behave and look.  It was originally created by Aaron Boodman (aka youngpup) in 2005.
Twitter is a social networking and micro blogging service that enables its users [...]

Also posted in Code, GreaseMonkey, Social Networking, Web | 1 Comment

Tab interface for static content using JavaScript Prototype

I wanted to make a simple as possible Tab interface, using the Prototype JavaScript library (version 1.6.0.3 in this case using the Goggle AJAX Libraries API).  Further adventures is modern javascripting….
Real world uses for this would include any time you have big long page with static chucks of text, or other content, that you want [...]

Also posted in Code, LinkedIn | Leave a comment

JavaScript for a single element radio button list, revisited with Prototype

Last year I posted JavaScript for a single element radio button list, referring to a issue I had with getting the value of generated radio button list. (All the standard solutions / samples that i found assumed the there are 2 or more choices.  And I had a case were an optional field [...]

Also posted in Code, LinkedIn | 1 Comment

JavaScript for a single element radio button list

The Problem here is if your list of data generated radio button html yields only one value. All the standard solutions / samples that a google yields assume the there are 2 or more choices.
This is not unreasonable for radio buttons, but if your list of choices is not hand built then [...]

Also posted in Code | 3 Comments