# Ajax Problems

**URL:** <https://www.ruby-forum.com/t/ajax-problems/148805>\
**Category:** Rails\
**Created:** [September 17, 2008, 8:57am UTC](https://www.ruby-forum.com/t/ajax-problems/148805 "2008-09-17T08:57:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 17, 2008, 8:57am UTC](https://www.ruby-forum.com/t/ajax-problems/148805/1 "2008-09-17T08:57:31Z")

</div>

Hello everyone,  
I’ve been pulling my hair out the last two days about what should be a  
really really simple fix for a website I’m upgrading. After recently  
upgrading it to Rails 2.1 I decided to start putting some ajax in with  
simple link\_to\_remote functions.

After throwing all the ajax together (I basically just copied and  
pasted off another one of my projects) I found the ajax would not  
execute at all giving me the only following error in firebug:  
reference to undefined property responder[callback]

Here is my current link\_to\_remote function:  
\<%= link\_to\_remote “aa”, :url =\>  
remove\_company\_admin\_advertisement\_url(company.id), :confirm =\> “Are  
you sure you want to delete this category?” %\>

As you can see it’s simple enough, you can’t really go that wrong with  
this function, however for some reason I have found it’s executing in  
every other browser other than Firefox, here’s a copied of the  
rendered html:  
aa

Now if I just copy this code and paste the pre-rendered html into the  
file and hit refresh it all loads fine, this one really really has me  
stumped does anyone have any ideas? I’ve already played around with  
the version of prototype, checked pages validate and stripped down all  
of the other html code to prevent any chance of interference.

Anyway thanks for your time,  
Thomas

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 17, 2008, 10:29am UTC](https://www.ruby-forum.com/t/ajax-problems/148805/2 "2008-09-17T10:29:41Z")

</div>

On Sep 17, 2:31 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hello everyone,  
> I’ve been pulling my hair out the last two days about what should be a  
> really really simple fix for a website I’m upgrading. After recently  
> upgrading it to Rails 2.1 I decided to start putting some ajax in with  
> simple link\_to\_remote functions.
> 
> After throwing all the ajax together (I basically just copied and  
> pasted off another one of my projects) I found the ajax would not  
> execute at all giving me the only following error in firebug:  
> reference to undefined property responder[callback]

Try looking at FF’s javascript.options.strict option.
