Category Archives: javascript

IBM Rational EGL : Simplified Web 2.0 development

Web 2.0 and RIA provide next generation of web applications. These applications have following properties-

Capabilities of a desktop application with manageibility of web applications
mash related data from different sources
Focus on client side processing
Simple but powerful interfaces
Collaborative

Why it is difficult to develop web 2.0 application?

Complex technologies involved like SOAP, JSON, Javascript, Ajax etc.
Most tools and solutions [...]

Also posted in AJAX, WEB 2.0 | Tagged , , | Leave a comment

Client Side Storage/Persistence

Why client side persistence ?
Web vs Desktop: Desktop allows a lot of options to store data on the client side as it allows us to access information from local files. But the web has a limitation in that respect. Wen do allow some mechanisms to store and load data locally one of them is cookies.
What [...]

Also posted in WEB 2.0, html | Tagged , , | Leave a comment

Getting iFrame’s Body content on IE and Firefox

A few days back i was working on a  problem for which i had to read contents from a body tag of an iframe. I tried the normal code which any developer will use :

var bodyContent=window.frames[’frameName’].document.body.innerHTML;

To my surprise it was not cross browser compatible.
It didn’t work on both IE and Firefox.
After googling i figured it [...]

Also posted in WEB 2.0 | Tagged | Leave a comment

Enable bookmarking and back button in ajax applications

One of the problems when using AJAX in an application is that we cannot bookmark pages and we cannot use browser’s back button. I have developed lot of application based on Ajax and faced this problem myself.
This problem exists even in Gmail , Google Maps etc.
I came  across a solution which can solve bookmarking and [...]

Also posted in AJAX, Uncategorized, WEB 2.0 | Tagged , , , | Leave a comment

jQuery Tools - Explored

jQuery Tools gives you tabs, tooltips, accordions, overlays, high usability, striking visual effects and all those “web 2.0″ goodies that you have seen on your favourite websites.
This library contains six of the most useful JavaScript tools available for today’s website. The beauty of this library is that all of these tools can be used together, [...]

Also posted in Uncategorized, WEB 2.0 | Tagged , , | Leave a comment

Reading a file from file system using javascript

Reading a file into javascript variable is a issue anyone can face while developing client side application.
The problem has different solution depending on platform/browser
Solution

1) Windows/IE : Use the available FileSystemObject. It allows one to read and write files from local machine.

2) Firefox: It does not have a object corresponding to FileSystemObject in IE. So [...]

Also posted in PHP | Tagged , | Leave a comment

Solution for IE 6 & 7’s min-width, max-width, min-height, max-height problem

Problem: IE 6 and IE 7 does not support min-width, min-height, max-width, max-height css properties. CSS code with these properties work very well in other browsers.
Solution: IE provides Dynamic Properties to solve this problem. IE provides “expression“  propert/function which is evaluated at runtime and the value is assigned to the CSS property.
For example: Lets look [...]

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

TWEET - Best jQuery plugin for Twitter

I searched the internet for jQuery plugin which can get me twitter feeds in an onobstructive and simplistic manner.I found jTwitter and TWEET and few others. I compared these two plugins and concluded that TWEET is the best. The ease of integration and the supplementary which one gets is awesome.
Download TWEET
Download jQuery
How to use it?
1) [...]

Also posted in WEB 2.0 | Tagged , , , | 1 Comment

mParallax - A visual treat

I just came across mParallax built by Piksite team. It was a visual delight as i saw the demo of the image at mParallax’s home page. The parachute and the moving sky gave a nice feeling before my developer instincts took over and i was forced to think about the implementation part.
It felt like this [...]

Also posted in WEB 2.0 | Tagged , , | Leave a comment

Script for allowing only numeric characters in a Textbox

Every javascript programmer comes across the client side validations where he has to restrict user inputs depending on the requirement.
Yesterday i came along an issue where i required only numeric input for the textbox.
So i wrote a script which allowed me to enter only digits in a text field.
Here’s my script snippet.

<input onkeypress="return validateNumericCharacter();" name="zipCode" [...]

Also posted in WEB 2.0 | Tagged , | Leave a comment