Archive for the ‘JavaScript’ Category

Ajax: Hotmail vs Yahoo Mail

October 24, 2006

So both Yahoo Mail! and Hotmail have come up with their AJAX based UIs. Its time I did a comparison.

Yahoo! Mail




Use of Colors, Icons, images

  • Hotmail, has worked upon its old icons, making them with gradient backgrounds though.
  • Yahoo has created bold new Icons, Their Icons are more intuitive. They are bigger, considering the higher resolutions (more than 1024 x 768). Hotmail’s icons’ main image still is small, with Text beside it to help
  • Hotmail has already given multiple themes like Blue, Red, Black, Sliver, Yahoo still lacks it, or atleast I wasn’t able to find it.



WAI Compatible popup windows

September 20, 2006

Frequently on websites, we need to pop windows, for slideshows, comments, feedbacks, etc. But want to ensure that the page is also WAI compatible.

So we use a trick, The trick is to give actual page link of the slideshow in the href, so that non standard browsers can access that slideshow, but the Standard Modern browsers that have JavaScript enabled can popup the window.

Use onclick event to pop a new window, but also make sure that a return false statement is present.

WAI Compatible: Window Popups

Escaping Firefox Popup Blocker

July 26, 2006

As of Firefox 1.5, the popup blocker can be easily be escaped or overridden. The popup blocker works on the principle of blocking popups that spawn without any interaction of the user.

To override this, what is done is add user interaction (unknown to the user…) to spawn a popup.

Spawning popup windows in Firefox


FJAX vs AJAX vs plain page

June 27, 2006

Recently I came across this page FJAX, and this is what it does….

  • Make HTTP calls
  • Get and parse XML
  • Render stuff

You’d say how different is it from AJAX, Well only in a way it uses a stupid Flash file which does all that.


IBM’s Live Scoreboard

June 3, 2006

I was trying to figure out IBM's way of a Live Scoreboard, I thought it must be having AJAX (XMLHttpRequest), but its not. Its using flash. Here is what I've deciphered.


Wikipedia Bookmarklet

February 25, 2006

We shall be creating a Wikipedia bookmarklet, The bookmarklet will either take whatever is selected on the screen as the string to be found or will prompt you.

As usual we’ll write the code as a normal JavaScript code, except that we start of with the string



Ajax Mistakes

January 11, 2006

If you haven’t read it here it is Ajax Mistakes

The important point, that we MUST take note.

When calling for a Document, Page, etc. Its best to use a URL (A unique Identifier for that document). Its the way the web is structured. Try using Apache’s mod_rewrite to make the URL readable. DO NOT FETCH SUCH DOCUMENTS WITH AJAX.


Creating a Bookmarklet

December 28, 2005

A bookmarklet is nothing but a simple Link. All that differs in the link is the href attribute value.

Lets make a simple whois bookmarklet (bkmlt), On clicking that bookmarklet, a prompt will ask for the domain, and on submitting the information… takes you to the whois page

The href attribute in bkmlt is all javascript

var dm = prompt(“Enter IP / Domain”, “”);
if (dm.length > 0) {
window.location = “Enter IP / Domain”, “” + dm;

The above javascript is very simple, prompts for a domain/IP, and changes the window’s location to the url…