Tag 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 [...]

Posted in AJAX, WEB 2.0, javascript | Also 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 [...]

Posted in WEB 2.0, html, javascript | Also 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 [...]

Posted in WEB 2.0, javascript | 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 [...]

Posted in AJAX, Uncategorized, WEB 2.0, javascript | Also 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, [...]

Posted in Uncategorized, WEB 2.0, javascript | Also 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 [...]

Posted in PHP, javascript | Also tagged | Leave a 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 [...]

Posted in WEB 2.0, javascript | Also 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" [...]

Posted in WEB 2.0, javascript | Also tagged | Leave a comment

Changing onclick event of an tag using javascript

I was doing some dom manipulation in my code when i got stuck with this issue.
“ISSUE” :- I had to assign a js function to onclick event of img tag.
I was assigning the function to the onclick event like this
document.getElementById(’buttonImg’).onClick=”postComment(’1′)”;
To my surprise this thing didn’t worked. I was following the rules and this is perfecly [...]

Posted in javascript | Also tagged | Leave a comment