469,337 Members | 5,934 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,337 developers. It's quick & easy.

rjs is not working in Internet Explorer

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
Jan 14 '08 #1
1 3045
improvcornartist
303 Expert 100+
Do you know if IE has javascript enabled? I tried the visual effects and replace_html as you have them and they worked in IE.
Jan 14 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Glenn | last post: by
3 posts views Thread by mr_burns | last post: by
13 posts views Thread by joemac | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.