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,
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,
Use an ajax request (lookup link_to_remote, remote_function etc...)
Fred
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.
Thanks and regards, Shripad
Read the API docs for the funcions I listed.
Fred
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
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