# Ajax, buttons, and firefox

**URL:** <https://www.ruby-forum.com/t/ajax-buttons-and-firefox/103915>\
**Category:** Rails\
**Created:** [May 11, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/ajax-buttons-and-firefox/103915 "2007-05-11T17:12:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thekernel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47774/32.png) [@thekernel](https://www.ruby-forum.com/u/thekernel)\
**Post date:** [May 11, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/ajax-buttons-and-firefox/103915/1 "2007-05-11T17:12:44Z")

</div>

I created a button\_to\_remote function that I use to call :toggle\_blind

visual\_effect :toggle\_blind, ‘div\_id’

It works great on Safari, Opera, IE, but in firefox the button does  
nothing. Is there a problem with firefox. I can’t seem to find much  
online about this issue.

–  
Amos K.  
Ramped Media  
USPS  
Programmer/Analyst  
St. Louis, MO  
Looking for something to do? Visit [ImThere.com](http://ImThere.com)

---

<div class="post-metadata">

**Author:** ![thekernel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47774/32.png) [@thekernel](https://www.ruby-forum.com/u/thekernel)\
**Post date:** [May 11, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/ajax-buttons-and-firefox/103915/2 "2007-05-11T19:38:08Z")

</div>

Hi Amos,

Amos K. wrote:

> It works great on Safari, Opera, IE, but in firefox the button does  
> nothing. Is there a problem with firefox. I can’t seem to find much  
> online about this issue.

First thing I always to with an Ajax problem now, especially in Firefox  
because it doesn’t tolerate even small errors sometimes, is to run the  
page  
source through the w3c XHTML validator. If you’ve already done that and  
it  
validates, you’ll need to post some code for us to help.

Best regards,  
Bill

---

<div class="post-metadata">

**Author:** ![thekernel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47774/32.png) [@thekernel](https://www.ruby-forum.com/u/thekernel)\
**Post date:** [May 11, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/ajax-buttons-and-firefox/103915/3 "2007-05-11T20:08:11Z")

</div>

I figured it out. When it prints the function to the page it puts it  
in " " then when I put the form name in " " it changes them to  
"form\_name" if I put it in ’ ’ it works. I guess the others  
just read it correctly.

On 5/11/07, Bill W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> because it doesn’t tolerate even small errors sometimes, is to run the page  
> source through the w3c XHTML validator. If you’ve already done that and it  
> validates, you’ll need to post some code for us to help.
> 
> Best regards,  
> Bill
> 
> >

–  
Amos K.  
Ramped Media  
USPS  
Programmer/Analyst  
St. Louis, MO  
Looking for something to do? Visit [ImThere.com](http://ImThere.com)
