Problems: Ajax on Rails

Hello,

I have two problems related to using Ajax on Rails.
1- I use form_remote_tag to perform a small search functionality.
When the user click search button, it will show the spinner image and
it is processing my search query. However, during that time when I
press escape key on firefox, it stop processing and then when I click
search again, no action is involved at all. Why was that? Does anybody
know the trick how to solve?
2- When there is no Internet Connection, my code has problems
because it needs to query to the Internet. I want to check the
internet connection first and then report to the user when the
internet connection is not available just like Gmail does when the
user the link or button that need to access to the Internet. If the
cache is available, it get the information from the cache.

Any idea…?

Thanks
Chamnap

Hello everybody,

Anybody has some idea with my the above two questions? Any idea is
always appreciated.

Thanks
Chamnap