# Respond\_to js and IE7

**URL:** <https://www.ruby-forum.com/t/respond-to-js-and-ie7/131744>\
**Category:** Rails\
**Created:** [March 12, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/respond-to-js-and-ie7/131744 "2008-03-12T22:17:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewkendall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Post date:** [March 12, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/respond-to-js-and-ie7/131744/1 "2008-03-12T22:17:18Z")

</div>

Hello,

I’m having an issue serving up javascript in IE7.

I have an action with…

respond\_to do |format|  
format.js  
end

This works fine in FF and Safari, but in IE7 I’m getting a file download  
dialog. IE7 is obviously not interpretting the returned content as  
javascript, but I’m not sure why. Can anybody tell me what the issue is  
here?

Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![andrewkendall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Post date:** [March 12, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/respond-to-js-and-ie7/131744/2 "2008-03-12T23:07:09Z")

</div>

Andrew K. wrote:

> Hello,
> 
> I’m having an issue serving up javascript in IE7.
> 
> I have an action with…
> 
> respond\_to do |format|  
> format.js  
> end
> 
> This works fine in FF and Safari, but in IE7 I’m getting a file download  
> dialog. IE7 is obviously not interpretting the returned content as  
> javascript, but I’m not sure why. Can anybody tell me what the issue is  
> here?
> 
> Thanks,  
> Andrew

Ok sorry, ignore. Because debugging in IE sucks compared to FF, it  
turns out the issue is a bug in my JS.
