Visit the javapronews Directory
Blogs
Blogger, Blogosphere, Web 2.0...
Design Agencies
Professional, Design, Job...
Education
Communicate, Help, Learn...
Forums
Search, Learn, Communicate...
Java Developers
Skills, Build, Distribute...
Java Tutorials
books, help, Learning...
Javascript Tutorials
Help, Learn, Read...
News
Technology, Business, Web...

Submit your site for FREE

Archive for the ‘JavaScript’ Category

Using JavaScript to Localize Text

Tuesday, September 2nd, 2008

Just about every web project I’ve been involved in have, at one time or the other, needed to present some text to the visitor through JavaScript. It could be in an alert box or some other way and the problem has always been to localize that text into different languages using resource files or satellite assemblies.

There are many ways of localizing the keys, but most of them involve writing out variables on a page with the localized text and then let the .js include files read from those variables. That’s not a good solution. It would be much better if the .js files could be rendered with the localized text directly.

At work, I’ve written exactly such a mechanism and here is a cleaned up, plug ‘n play version you can use in your own web project. It’s an HttpHandler that intercepts the requests to the .js files and performs the localization based on regular expressions. Here’s how it works.

(more…)

Use JavaScript and Google Analytics to Optimize Your Forms

Thursday, August 14th, 2008

Forms are pretty much a necessity on websites therefore it becomes important to track how your visitors interact with the forms on your website, understand which fields are most often left empty, and determine how to best optimize your forms for success. In the past we have talked about great solutions like ClickTale which help determine:

  • Which fields take the longest to complete

  • Which fields are left blank and may be superfluous

  • How often errors occur that force visitors to refill a field

Allaedin Ezzedin over at the Ambient/Transparent blog wrote an excellent post yesterday in which he explains how to use JavaScript and Google Analytics to create a home grown solution to help in the optimization of forms.

(more…)