Hello everyone, What I''m trying to accomplish is simply post a form using form_remote_tag and use :complete => "alert(DONE!'''')" to indicate succesfull post. I do not want to render a new page or update any part of the page at all. Just a simple javascript alert. While I have something working on IE, I just can''t seem to get it to work on Firefox. Any ideas? p.s. I can post some code once I figure out how to add markup for code. Can you help me with that as well? Selim -- 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 19 Feb 2008, at 21:07, Selim Hendrickson wrote:> > Hello everyone, > > What I''m trying to accomplish is simply post a form using > form_remote_tag and use > > :complete => "alert(DONE!'''')" >Is that actually the code you''ve got? it should of course be alert(''DONE!'')> to indicate succesfull post. I do not want to render a new page or > update any part of the page at all. Just a simple javascript alert. > While I have something working on IE, I just can''t seem to get it to > work on Firefox. Any ideas? > > p.s. I can post some code once I figure out how to add markup for > code. > Can you help me with that as well? >ruby-forum just mirrors a mailing list - no fancy markup.> Selim > -- > 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 -~----------~----~----~----~------~----~------~--~---
Hello Frederick, First of all thanks for trying to help out. That''s actually a typo on my side but that was not the problem. Actually I solved the problem later. It was just a previous javascript that hindered the correct execution. Thanks anyway.. Frederick Cheung wrote:> On 19 Feb 2008, at 21:07, Selim Hendrickson wrote: > >> >> Hello everyone, >> >> What I''m trying to accomplish is simply post a form using >> form_remote_tag and use >> >> :complete => "alert(DONE!'''')" >> > Is that actually the code you''ve got? it should of course be > alert(''DONE!'') >> to indicate succesfull post. I do not want to render a new page or >> update any part of the page at all. Just a simple javascript alert. >> While I have something working on IE, I just can''t seem to get it to >> work on Firefox. Any ideas? >> >> p.s. I can post some code once I figure out how to add markup for >> code. >> Can you help me with that as well? >> > ruby-forum just mirrors a mailing list - no fancy markup.-- 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 -~----------~----~----~----~------~----~------~--~---