[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RubyScript

dpersik

12/7/2005 9:57:00 PM

I have done some searching on the web and have found very little about
RubyScript. Any browsers support this? The main thing I don't like
about AJAX is the Javascript, but using RubyScript as a replacement
would be cool.

15 Answers

Dan Diebolt

12/7/2005 10:11:00 PM

0

>I have done some searching on the web and have found very little about
RubyScript. Any browsers support this?

This worked for me in IE6:

<html>
<head>
<script for=window event=onload language=RubyScript>
@window.alert "Hello World !"
</script>
</head>
<body>Hello World!</body>
</html>

See:

http://arton.hp.infoseek.co.jp/...

http://www.mvps.org/scripting/...


dpersik@gmail.com wrote: I have done some searching on the web and have found very little about
RubyScript. Any browsers support this? The main thing I don't like
about AJAX is the Javascript, but using RubyScript as a replacement
would be cool.






---------------------------------
Yahoo! Personals
Single? There's someone we'd like you to meet.
Lots of someones, actually. Try Yahoo! Personals

Bill Atkins

12/7/2005 10:22:00 PM

0

Of course, this will only work if the user has RubyScript installed on
their system - not necessarily practical for public web applications.

On 12/7/05, Dan Diebolt <dandiebolt@yahoo.com> wrote:
> >I have done some searching on the web and have found very little about
> RubyScript. Any browsers support this?
>
> This worked for me in IE6:
>
> <html>
> <head>
> <script for=window event=onload language=RubyScript>
> @window.alert "Hello World !"
> </script>
> </head>
> <body>Hello World!</body>
> </html>
>
> See:
>
> http://arton.hp.infoseek.co.jp/...
>
> http://www.mvps.org/scripting/...
>
>
> dpersik@gmail.com wrote: I have done some searching on the web and have found very little about
> RubyScript. Any browsers support this? The main thing I don't like
> about AJAX is the Javascript, but using RubyScript as a replacement
> would be cool.
>
>
>
>
>
>
> ---------------------------------
> Yahoo! Personals
> Single? There's someone we'd like you to meet.
> Lots of someones, actually. Try Yahoo! Personals
>


--
Bill Atkins


Jacob Fugal

12/7/2005 10:28:00 PM

0

On 12/7/05, Dan Diebolt <dandiebolt@yahoo.com> wrote:
> This worked for me in IE6:
>
> <html>
> <head>
> <script for=window event=onload language=RubyScript>
> @window.alert "Hello World !"
> </script>
> </head>
> <body>Hello World!</body>
> </html>

I tried it in IE6 (Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519),
didn't work. It did prompt me that "Active Content" was being blocked,
but after unblocking and refreshing there was still no popup alert.
(It didn't work in Firefox either, but I was expecting as much.)

Jacob Fugal


Dan Diebolt

12/7/2005 10:37:00 PM

0

>I tried it in IE6 (Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519), didn't work

That is the exact version of IE6 I have so there must be another issue at play.






---------------------------------
Yahoo! Personals
Single? There's someone we'd like you to meet.
Lots of someones, actually. Yahoo! Personals

Jacob Fugal

12/7/2005 11:05:00 PM

0

On 12/7/05, Dan Diebolt <dandiebolt@yahoo.com> wrote:
> >I tried it in IE6 (Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519), didn't work
>
> That is the exact version of IE6 I have so there must be another issue at play.

Possibly you already have some RubyScript plugin installed?

Jacob Fugal


Dan Diebolt

12/7/2005 11:11:00 PM

0

Of course you have to install it - you only get VBScript and JavaScript functionality out of the IE box.



---------------------------------
Yahoo! DSL Something to write home about. Just $16.99/mo. or less

Jacob Fugal

12/8/2005 12:13:00 AM

0

On 12/7/05, Dan Diebolt <dandiebolt@yahoo.com> wrote:
> Of course you have to install it - you only get VBScript and JavaScript
> functionality out of the IE box.

Well, I think that's what the OP was referring to, whether any
browsers supported it "Out of the Box". While RubyScript is cool and
great, it's not very useful for a public site if you have to hope the
users have installed the plugin first.

What we need, rather -- since we're pretty much stuck with JavaScript
as the defacto standard -- is to continue to publicize the libraries
like Prototype that make working with JavaScript much more palatable
and, in some ways, Rubyesque.

Jacob Fugal


james_b

12/8/2005 12:54:00 AM

0

dpersik@gmail.com wrote:
> I have done some searching on the web and have found very little about
> RubyScript. Any browsers support this? The main thing I don't like
> about AJAX is the Javascript, but using RubyScript as a replacement
> would be cool.


JavaScript may be sweeter than you know.


http://www.crockford.com/javascript/l...
http://interglacial.com/ho...
http://www.joeganley.com/code/j...
http://w3future.com/html/stori...


James


--

http://www.ru... - Ruby Help & Documentation
http://www.artima.c... - Ruby Code & Style: Writers wanted
http://www.rub... - The Ruby Store for Ruby Stuff
http://www.jame... - Playing with Better Toys
http://www.30seco... - Building Better Tools


Dan Diebolt

12/8/2005 1:44:00 AM

0

>we're pretty much stuck with JavaScript ... publicize the libraries that make working with JavaScript much more palatable and, in some ways, Rubyesque.

In all practical terms you are stuck with JavaScript on the client.

But I am curious how this could be done - make working with JavaScript more Rubyesque. Unless the browser supports Ruby there isn't much you can do that is Rubyesque. You can send XML, YAML or JSON to the browser upon an xmlhttprequest but only the JavaScript engine can do something with it. Would sending YAML to a JavaScript enabled browser be considered Rubyesque?
"YAML originally took off in the Ruby community as a better XML ..."
http://ajaxian.com/archives/2005/11/json_yaml_...
I don't see RubyScript having any practical value over JavaScript client-side.


---------------------------------
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping

tsumeruby

12/8/2005 2:12:00 AM

0

On Thursday 08 December 2005 09:13 am, Jacob Fugal wrote:
> Well, I think that's what the OP was referring to, whether any
> browsers supported it "Out of the Box". While RubyScript is cool and
> great, it's not very useful for a public site if you have to hope the
> users have installed the plugin first.
>
> What we need, rather -- since we're pretty much stuck with JavaScript
> as the defacto standard -- is to continue to publicize the libraries
> like Prototype that make working with JavaScript much more palatable
> and, in some ways, Rubyesque.
>

I disagree with being stuck with javascript. People are stuck with javascript
as a programmer stuck to php. You have a choice, and you need to force a user
to install it. Wide usage will get more attention. If you also look at the
Mozilla project, they are embedded Python stubs in for the next milestone so
it will be easy to use XUL+Python. I really would want this to be XUL+Ruby
though.

Tsume