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…

On 20 October 2010 12:10, Amit T. [email protected] 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 C. wrote in post #955730:

On 20 October 2010 12:10, Amit T. [email protected] 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 .

Mike S. 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
http://www.ruby-forum.com/topic/275384#new

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs