# Prototype.js: Ajax.Request failing IE7 and working in FF2

**URL:** <https://www.ruby-forum.com/t/prototype-js-ajax-request-failing-ie7-and-working-in-ff2/120587>\
**Category:** Rails\
**Created:** [November 18, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/prototype-js-ajax-request-failing-ie7-and-working-in-ff2/120587 "2007-11-18T22:15:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredistic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a8b319/32.png) [@fredistic](https://www.ruby-forum.com/u/fredistic)\
**Post date:** [November 18, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/prototype-js-ajax-request-failing-ie7-and-working-in-ff2/120587/1 "2007-11-18T22:15:20Z")

</div>

Reviewing Ajax with the book ‘Ajax on Rails’. At the bottom of page  
24 the examples uses Ajax.request from prototype.js to replace text.  
It works in FF2 but fails in IE7. That’s a bug I need to fix.

Here’s the failing code:

Update the element [Works on FF, Fails on IE7]

I changed from id=“response” to id=“responsive” thinking I had a name  
conflict. No change.

I tried turning off native XMLHTTP support in the options – no  
change.

Works as specified in Firefox 2.0.0.9, not in IE7.

On IE7, the alert() comes up and says “updateElement called” like it  
should, but the next line does nothing. Removing the alert() – no  
change.

Any ideas,  
Fredistic

prototype.js 1.5.0  
rails 1.2.4  
ruby 1.8.6

---

<div class="post-metadata">

**Author:** ![fredistic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a8b319/32.png) [@fredistic](https://www.ruby-forum.com/u/fredistic)\
**Post date:** [November 21, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/prototype-js-ajax-request-failing-ie7-and-working-in-ff2/120587/2 "2007-11-21T16:21:05Z")

</div>

this first thing I see is that you are not stopping the link from  
reloading the page

try this:  
Update the element  
[Works on  
FF, Fails on IE7]

instead.

Let me know if it works

Thanks
