RubyScript

D

dpersik

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.
 
D

Dan Diebolt

--0-2269112-1133993453=:724
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
I have done some searching on the web and have found very little about
RubyScript. Any browsers support this?=20
=20
This worked for me in IE6:
=20
<html>
<head>
<script for=3Dwindow event=3Donload language=3DRubyScript>
@window.alert "Hello World !"
</script>
</head>
<body>Hello World!</body>
</html>
=20
See:
=20
http://arton.hp.infoseek.co.jp/index.html
=20
http://www.mvps.org/scripting/languages/
=20

(e-mail address removed) 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.





=09
 
B

Bill Atkins

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

Jacob Fugal

This worked for me in IE6:

<html>
<head>
<script for=3Dwindow event=3Donload language=3DRubyScript>
@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
 
D

Dan Diebolt

--0-1770721397-1133995032=:17044
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
I tried it in IE6 (Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519), did=
n't work
=20
That is the exact version of IE6 I have so there must be another issue =
at play.


=20


=09
 
J

Jacob Fugal

n'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
 
D

Dan Diebolt

--0-533608824-1133997019=:26979
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

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


=09
 
J

Jacob Fugal

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
 
J

James Britt

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/little.html
http://interglacial.com/hoj/hoj.html
http://www.joeganley.com/code/jslisp.html
http://w3future.com/html/stories/hop.xml


James


--

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
 
D

Dan Diebolt

--0-146961667-1134006222=:86685
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
we're pretty much stuck with JavaScript ... publicize the libraries tha=
t make working with JavaScript much more palatable and, in some ways, Rub=
yesque.
=20
In all practical terms you are stuck with JavaScript on the client.
=20
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 i=
t. Would sending YAML to a JavaScript enabled browser be considered Rubye=
sque?
"YAML originally took off in the Ruby community as a better XML ..."
http://ajaxian.com/archives/2005/11/json_yaml_its_g.html
I don't see RubyScript having any practical value over JavaScript clien=
t-side.

=09
 
T

tsumeruby

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
 
L

Logan Capaldo

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?

I think he was pointing out that javascript is actually quite a
dynamically language. It has higher order functions, you can extend
an object at runtime, etc.
 
J

James Britt

Jacob said:
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.


The poorly-named Prototype.js helps hide developer interaction with
JavaScript; you learn a set of library-specific calls, and you're done.
You don't need to know much actual JavaScript, just someone's idea of a
suitable API.

People who are going to write client-side Web code should just learn
JavaScript. It isn't hard, it offers many things found in Ruby, and
you'll know what your code is doing, and why, without loading 47k of
library code before you've even started. Learn what JavaScript's
'prototype' is and what it can do. (Casual browsing of some JavaScript
books, though, suggest that most authors don't even mention 'prototype',
and tend to teach the language as if it were some Java or C variant. Sad.)



James


--

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
 
K

Kevin Brown

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

There is a difference though. PHP is server side, so migrating away from it
only forces installation ONCE on the server side. Migrating away from Java
Script involves forcing every single client to install X. While that draws
attention, most users simply won't bother, or will attempt to get the
information via some other means. This is bad for especially commercial web
apps.
 
C

Chad Perrin

There is a difference though. PHP is server side, so migrating away from it
only forces installation ONCE on the server side. Migrating away from Java
Script involves forcing every single client to install X. While that draws
attention, most users simply won't bother, or will attempt to get the
information via some other means. This is bad for especially commercial web
apps.

four words: code that degrades gracefully

more explicit: Use code that degrades gracefully for people who don't
have Rubyscript plugins installed, and include some kind of "best viewed
with plugin X" indicator on the page. Everybody can still get all the
information needed that way without going somewhere else, and those who
go to the trouble of installing the indicated plugin will be rewarded
with a richer user experience.
 
D

dpersik

Maybe a replacement to JavaScript is what Google had in mind when
hiring Guido (creator of Python)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,652
Latest member
Campbellamy

Latest Threads

Top