Hello Guys, I have a requirement in which a cron will run everyday and a rake file will execute along with rake file i need to javascript function so just wanted to know is there any way i can run a javascript. Regards Abhishek Shukla
Helloo Abhishek, On Thu, 2009-05-21 at 19:37 +0530, Abhishek shukla wrote:> Hello Guys, > I have a requirement in which a cron will run everyday and a rake file > will execute along with rake file i need to javascript function so > just wanted to know is there any way i can run a javascript.Cron and rake are server-side tools. Javascript runs in the browser. You can''t, AFAIK, run Javascript from the server. What is it, exactly, that you think you need Javascript to do? Best regards. Bill
On Thu, May 21, 2009 at 9:10 AM, bill walton <bwalton.im-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Helloo Abhishek, > > On Thu, 2009-05-21 at 19:37 +0530, Abhishek shukla wrote: > > Hello Guys, > > I have a requirement in which a cron will run everyday and a rake file > > will execute along with rake file i need to javascript function so > > just wanted to know is there any way i can run a javascript. > > Cron and rake are server-side tools. Javascript runs in the browser. > You can''t, AFAIK, run Javascript from the server. What is it, exactly, > that you think you need Javascript to do? > > Best regards. > Bill >You want to take a look at what the guys did over at Aptana: http://ejohn.org/blog/server-side-javascript-with-jaxer http://www.aptana.com/jaxer Good luck, -Conrad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Is there any reason you can''t convert the javascript to Ruby? On May 21, 7:07 am, Abhishek shukla <bettera...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello Guys, > I have a requirement in which a cron will run everyday and a rake file will > execute along with rake file i need to javascript function so just wanted to > know is there any way i can run a javascript. > > Regards > Abhishek Shukla
Hello Bill, Basically i am calling a third party javascript api after a signup action. And we have a monthly renewal of account as well which execute through a rake command and even that time i''ll need to run this Javascript api :( On Thu, May 21, 2009 at 11:50 PM, E. Litwin <elitwin-ur4TIblo6goN+BqQ9rBEUg@public.gmane.org> wrote:> > Is there any reason you can''t convert the javascript to Ruby? > > On May 21, 7:07 am, Abhishek shukla <bettera...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello Guys, > > I have a requirement in which a cron will run everyday and a rake file > will > > execute along with rake file i need to javascript function so just wanted > to > > know is there any way i can run a javascript. > > > > Regards > > Abhishek Shukla > > >--~--~---------~--~----~------------~-------~--~----~ 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 Fri, May 22, 2009 at 6:56 AM, Abhishek shukla <betterabhi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Basically i am calling a third party javascript api after a signup action. > And we have a monthly renewal of account as well which execute through a > rake command and even that time i''ll need to run this Javascript api :(You don''t "run" an api. What action is being invoked, and where is it supposed to take place? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org