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
Attachments:
http://www.ruby-forum.com/attachment/1299/ajax_error.JPG
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Saurabh Purnaye 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 <tbody> in table or not? If not, then try using that. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Ravet -------- http://tumblr.ravet.com http://blog.ravet.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Purnaye
saurabh.purnaye-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
+919922907342
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Do the fade and highlight divs exist on the page? On Jan 15, 2008 3:55 PM, Saurabh Purnaye <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 Purnaye > saurabh.purnaye-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > +919922907342 > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ya Ryan The elements exists on the view pages... can i have your gmail id for gtalk? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 15, 2008 1:33 PM, Ryan Bigg <radarlistener-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.> > > On Jan 15, 2008 3:55 PM, Saurabh Purnaye <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > > > 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 Purnaye > > saurabh.purnaye-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > +919922907342 > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 1/15/08, sishen <yedingding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---