Hi,
I am new to Ruby. I want to use Ruby in browser and integrate it with
HTML.
Could somebody help me to do so?
Please suggest me how to achieve this?
I want to use my code in call my Ruby script with the help of HTML code.
Is
it possible?
FYI: I am not using RAILS. I am using Ruby and Watir to automate the my
web
applications.
–
Thanks and Regards,
Amit
On 1 August 2011 14:38, Amit B. [email protected] wrote:
applications.
You cannot call ruby within the browser, you have to use javascript or
similar. You can of course make requests to the server in the normal
way, where you can use ruby.
Colin
On Aug 1, 2011, at 9:38 AM, Amit B. wrote:
my web applications.
If you want to integrate Ruby code with an HTML interface, you
basically have a couple of options: CGI and Rack (which is just a much
more modern implementation of CGI, IMO). There were tons of examples
of both on Google last time I checked. Either of these will provide
you a way to map Web form inputs to the Ruby script’s STDIN interface.
Walter
Amit B. wrote in post #1014173:
I want to use my code in call my Ruby script with the help of HTML code.
Is
it possible?
FYI: I am not using RAILS.
Then why are you posting your question in a rails forum?
I am new to Ruby. I want to use Ruby in browser and integrate it with
HTML.
Could somebody help me to do so?
Please suggest me how to achieve this?
| | _________
| |<------ ~~ -------> |_______|
------- server:
browser: ruby
html python
flash perl
javascript php
jsp+servlets
Your options: Use your new found ruby skills to program a browser that
understands ruby rather than javascript, and then convince more than 5
people to download your browser and read your blog to make it all
worthwhile.