472,123 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,123 software developers and data experts.

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
@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=>
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 3113
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.