Archive for August, 2008

AJAX Progress Indicator

Saturday, August 9th, 2008

I’ve been working on integrating AJAX into my project. It wasn’t easy, but I got the data to load dynamically.
Depending on how much data to load, it may take a while especially over a slow connection (or an overloaded server). It is a good practice to have some progress indicator.
I found a really cool website that can help to build the progress indicator.
Even better, the images are free for use! :)
Feel free to post other websites that offer the same feature.

Reset Button in Rails

Sunday, August 3rd, 2008

I am sure at some point web applications will require an entry form.

I just notice that Rails does not make the ‘Reset’ button available. Here is an example of an HTML form with a reset button:

Google helps me again! :)
I found a post from mc-kenna.com to describe what needs to be done.

<%= submit_tag "Start over", :name => ‘reset’, :type => ‘reset’, :id => ‘task_reset’ %>

Upon further research, I found an interesting discussion/ticket about making the reset button available in Rails. Making the button available is considered as a bad practice.

The ticket refers to Jacob Nielsen’s useit.com. A little blurb:

The Web would be a happier place if virtually all Reset buttons were removed. This button almost never helps users, but often hurts them.

I agree with the opinion that the button should be removed! :)