How do i use JS.Class in ruby

Hii all,
         I would like to use JS.Class in ruby but i don't know where to
start it means i downloaded a packege named JS.class but i do i include
it in ruby ??And can anyone give me example to how should i use it...

···

--
Posted via http://www.ruby-forum.com/.

Are you referring to http://jsclass.jcoglan.com? That's not a Ruby project,
it just gives you a Ruby-like object system to use in JavaScript programs.
You can't load it in a Ruby environment, and you wouldn't want to since Ruby
already does everything JS.Class provides.

···

On 20 October 2010 12:10, Amit Tomar <amittomer25@yahoo.com> wrote:

Hii all,
        I would like to use JS.Class in ruby but i don't know where to
start it means i downloaded a packege named JS.class but i do i include
it in ruby ??And can anyone give me example to how should i use it...

--
James Coglan
http://jcoglan.com
+44 (0) 7771512510

What is your server and what is your client? You talk about win32api -
how are you expecting that to run on your 'client'?

JS.class is code that runs in a browser, so you need to write your JS
program and insert it into the HTML you are serving to your web app.
It's relation to Ruby is that it resembles it to a degree, but it
doesn't interact.

···

--
Posted via http://www.ruby-forum.com/.

James Coglan wrote in post #955730:

···

On 20 October 2010 12:10, Amit Tomar <amittomer25@yahoo.com> wrote:

Hii all,
        I would like to use JS.Class in ruby but i don't know where to
start it means i downloaded a packege named JS.class but i do i include
it in ruby ??And can anyone give me example to how should i use it...

Are you referring to http://jsclass.jcoglan.com? That's not a Ruby
project,
it just gives you a Ruby-like object system to use in JavaScript
programs.
You can't load it in a Ruby environment, and you wouldn't want to since
Ruby
already does everything JS.Class provides.

James Actully what problem am facing in my application i am generating a
messagebox (win32 api messagebox) but its displaying only at server side
from client side am not able to see that ,for that am trying to include
javascript in ruby but could not find anyway to do that .

--
Posted via http://www.ruby-forum.com/\.

Mike Stephens wrote in post #955936:

What is your server and what is your client? You talk about win32api -
how are you expecting that to run on your 'client'?

JS.class is code that runs in a browser, so you need to write your JS
program and insert it into the HTML you are serving to your web app.
It's relation to Ruby is that it resembles it to a degree, but it
doesn't interact.

Mike this is something i want to achieve

···

--
Posted via http://www.ruby-forum.com/\.