# Rjs is not working in the internet explorer

**URL:** <https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957>\
**Category:** Rails\
**Created:** [January 14, 2008, 6:11am UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957 "2008-01-14T06:11:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [January 14, 2008, 6:11am UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957/1 "2008-01-14T06:11:34Z")

</div>

i have checked the DOM tree and every thing is working fine…  
The same works fine in mozilla firefox…  
I m here by pasting the screen shot taken in the internet explorer…  
The code i have written is  
render :update do |page|#rjs for posting comment and replacing the  
element  
@video=Video.find\_by\_id(@comment.video\_id)  
@comments= Comment.find(:all,:conditions=\>[“video\_id  
=?”,@comment.video\_id],:limit=\>5,:order=\>“created\_at DESC”)  
page[‘result’].replace\_html :partial =\> ‘partials/comments’,  
:object =\> @comments #here @comments is the object i m passing to the  
partial and result is the html element that i m updating  
page[‘my\_form’].reset #my remote\_form\_for id  
flash[:notice] = “Thank you for commenting this video”  
page.replace\_html :message, flash[:notice], :object=\>  
flash[:notice]  
flash.discard  
page.visual\_effect :highlight, ‘result’, :duration =\> 2 #for  
highlighting the result div  
page.visual\_effect :highlight, ‘message’, :duration =\> 2  
#this is the flash message  
page.visual\_effect(:fade, ‘comments’, :duration =\> 0.5)  
end #end for rjs

---

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [January 14, 2008, 6:30am UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957/2 "2008-01-14T06:30:40Z")

</div>

Saurabh P. wrote:

> i have checked the DOM tree and every thing is working fine…  
> The same works fine in mozilla firefox…  
> I m here by pasting the screen shot taken in the internet explorer…

Are you using

 in table or not?  
If not, then try using that.

---

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [January 14, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957/3 "2008-01-14T12:25:35Z")

</div>

Saurabh,

When you run into an rjs error, it’s useful to know which line  
triggered the error/odd behaviour.  
=\> to find out, you must :

- comment all your rjs file contents, and see if it works (meaning: no  
error dialog)  
and then,
- uncomment lines 1 by 1, and see when the error happens

HTH

## Alain R.

[http://tumblr.ravet.com](http://tumblr.ravet.com)  
[http://blog.ravet.com](http://blog.ravet.com)

---

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [January 15, 2008, 6:25am UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957/4 "2008-01-15T06:25:26Z")

</div>

resp sir,  
Thanks for reply …  
actually i commented all the lines as you said but the lines where there  
is a visual effect is having the errors…  
e.g.  
flash[:notice] = “Thank you for commenting this video”  
page.replace\_html :message, flash[:notice], :object=\>  
flash[:notice]  
page.visual\_effect :highlight, ‘result’, :duration =\> 2  
page.visual\_effect(:fade, ‘comments’, :duration =\> 0.5)  
can we come up with some solutions…  
Thanks and regards  
Saurabh P.  
removed\_email\_address@domain.invalid  
+919922907342

---

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [January 15, 2008, 6:39am UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957/5 "2008-01-15T06:39:30Z")

</div>

ya Ryan The elements exists on the view pages…  
can i have your gmail id for gtalk?

---

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [January 15, 2008, 6:34am UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957/6 "2008-01-15T06:34:46Z")

</div>

Do the fade and highlight divs exist on the page?

On Jan 15, 2008 3:55 PM, Saurabh P.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> page.visual\_effect(:fade, ‘comments’, :duration =\> 0.5)

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [January 15, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957/7 "2008-01-15T20:20:39Z")

</div>

On Jan 15, 2008 1:33 PM, Ryan B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Do the fade and highlight divs exist on the page?

I have met the problem also. Because of lack of the knowledge of IE, I  
really feel frustrating about that.

How can i solve the problem?

Thanks.

---

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [January 15, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/rjs-is-not-working-in-the-internet-explorer/125957/8 "2008-01-15T22:16:24Z")

</div>

On 1/15/08, sishen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have met the problem also. Because of lack of the knowledge of IE, I  
> really feel frustrating about that.
> 
> How can i solve the problem?

Doesn’t M$ provide a Javascript debugger of some sort? Is your HTML  
standards compliant?

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
