# Problems: Ajax on Rails

**URL:** <https://www.ruby-forum.com/t/problems-ajax-on-rails/106790>\
**Category:** Rails\
**Created:** [June 14, 2007, 4:18am UTC](https://www.ruby-forum.com/t/problems-ajax-on-rails/106790 "2007-06-14T04:18:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chamnap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/779978/32.png) [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Post date:** [June 14, 2007, 4:18am UTC](https://www.ruby-forum.com/t/problems-ajax-on-rails/106790/1 "2007-06-14T04:18:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chamnap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/779978/32.png) [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Post date:** [June 21, 2007, 5:59am UTC](https://www.ruby-forum.com/t/problems-ajax-on-rails/106790/2 "2007-06-21T05:59:16Z")

</div>

Hello everybody,

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

Thanks  
Chamnap
