# Rjs not working only In IE

**URL:** <https://www.ruby-forum.com/t/rjs-not-working-only-in-ie/113709>\
**Category:** Rails\
**Created:** [September 4, 2007, 8:00am UTC](https://www.ruby-forum.com/t/rjs-not-working-only-in-ie/113709 "2007-09-04T08:00:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [September 4, 2007, 8:00am UTC](https://www.ruby-forum.com/t/rjs-not-working-only-in-ie/113709/1 "2007-09-04T08:00:56Z")

</div>

HI folks,

I rendered a rjs file in my rails controller action like this…

render :action=\>‘station\_marker\_display’

Where station\_marker\_display.rjs have the code like this …

page.call “map.closeInfoWindow”  
page.call “message\_disp”, ‘Location added’  
page.call “map.clearOverlays”  
page.call “load\_station\_markers”,29.6880527498568,34.8046875,87,‘ddd’

It works fine for me in firefox but in IE it returns/open a file and ask  
to save  
that file contains the raw javascript code for the above rjs coding like  
this…

try {  
map.closeInfoWindow();  
message\_disp(“Location added”);  
map.clearOverlays();  
load\_station\_markers(29.6880527498568, 34.8046875, 87, “ddd”);  
} catch (e) { alert(‘RJS error:\n\n’ + e.toString());  
alert(‘map.closeInfoWindow();\nmessage\_disp(“Location  
added”);\nmap.clearOverlays();\nload\_station\_markers(29.6880527498568,  
34.8046875, 87, “ddd”);’); throw e }

simply in firefox it runs the javascript code . but In IE it returns the  
javascript code as file .

Can any one help me how to overcome this.
