From: Phrogz Date: 2006-12-22T15:00:05+09:00 Subject: Re: External Ruby Script in HTML Naked Sushi wrote: > #!/usr/bin/ruby > def greeting () > return "Hello world!" > end > > I want to call that script from within an HTML document. How would I do > so? Read this (it's very short): http://xkr.us/js/clientserver When you see "PHP" in there, think "My Ruby Script". For your question, when you see "JS", you can think "HTML". Hopefully that very brief story will help you understand how the 'magic' of the WWW works; where your Ruby code can run on the server, and why you can't run server code from a user's web browser. The only thing you can do is use HTML and/or JavaScript to make a new request back to the web server, and get the results from it.