Hi all, I want to call a method present in ROR controller in my javascript for performing some logout activities. How can I do this Please help me Thanks and regards, --~--~---------~--~----~------------~-------~--~----~ 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 Jun 28, 4:59 am, Shripad <shripad.josh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I want to call a method present in ROR controller in my javascript for > performing some logout activities. How can I do this > Please help me >Use an ajax request (lookup link_to_remote, remote_function etc...) Fred --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 28, 5:14 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jun 28, 4:59 am, Shripad <shripad.josh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > > I want to call a method present in ROR controller in my javascript for > > performing some logout activities. How can I do this > > Please help me > > Use an ajax request (lookup link_to_remote, remote_function etc...) > > Fred hi, thanks for your urgent reply Frederick but, i don''t know how to use ajax for the same, will u please give me details abt this. Thanks and regards, Shripad --~--~---------~--~----~------------~-------~--~----~ 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 29 Jun 2008, at 08:10, Shripad wrote:> > > > On Jun 28, 5:14 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> On Jun 28, 4:59 am, Shripad <shripad.josh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi >> all, >> >>> I want to call a method present in ROR controller in my javascript >>> for >>> performing some logout activities. How can I do this >>> Please help me >> >> Use an ajax request (lookup link_to_remote, remote_function etc...) >> >> Fr > ed > > hi, > > thanks for your urgent reply Frederick > but, i don''t know how to use ajax for the same, > will u please give me details abt this.Read the API docs for the funcions I listed. Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, I have implemented the methods u listed, but it is still not solved my purpose what I want to do is, when user close the browser the user should be loged out but it is not doing that. will you please suggest me a solution. Thanks and Regards Shripad On Jun 29, 6:39 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 29 Jun 2008, at 08:10, Shripad wrote: > > > > > > > On Jun 28, 5:14 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > >> On Jun 28, 4:59 am, Shripad <shripad.josh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi > >> all, > > >>> I want to call a method present in ROR controller in my javascript > >>> for > >>> performing some logout activities. How can I do this > >>> Please help me > > >> Use an ajax request (lookup link_to_remote, remote_function etc...) > > >> Fr > > ed > > > hi, > > > thanks for your urgent reply Frederick > > but, i don''t know how to use ajax for the same, > > will u please give me details abt this. > > Read the API docs for the funcions I listed. > > Fred--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 30, 5:31 am, Shripad <shripad.josh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I have implemented the methods u listed, but it is still not solved my > purpose > > what I want to do is, when user close the browser the user should be > loged out > but it is not doing that.Could have saved everyone some time if you''d said that to begin with. There is window.onclose, although you can''t be 100% sure it will be called (eg browser crashes, user loses network connection etc...) Fred> > will you please suggest me a solution. > > Thanks and Regards > Shripad > > On Jun 29, 6:39 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > On 29 Jun 2008, at 08:10, Shripad wrote: > > > > On Jun 28, 5:14 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > wrote: > > >> On Jun 28, 4:59 am, Shripad <shripad.josh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi > > >> all, > > > >>> I want to call a method present in ROR controller in my javascript > > >>> for > > >>> performing some logout activities. How can I do this > > >>> Please help me > > > >> Use an ajax request (lookup link_to_remote, remote_function etc...) > > > >> Fr > > > ed > > > > hi, > > > > thanks for your urgent reply Frederick > > > but, i don''t know how to use ajax for the same, > > > will u please give me details abt this. > > > Read the API docs for the funcions I listed. > > > Fred--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---