From: Saji Hameed Date: 2013-08-05T03:01:48+09:00 Subject: Re: Capture HTML table data, pass to Ruby, pass back and display result in HTML text field --089e0149d17a30a11d04e322fcaf Content-Type: text/plain; charset=UTF-8 > Do I gather this is the only way Ruby can be made to work in a web page? > i.e. only at the moment the page is written out to HTML? Ruby routines > cannot be called directly from the web page? That is the way RubyFrontier works (as I understand it)! A framework like Rails or Sinatra may be used if you want to invoke Ruby routines through the server. saji Saji N Hameed, ARC-ENV, Center for Advanced Information Science and Technology, University of Aizu, Tsuruga, Ikki-machi, Aizuwakamatsu-shi, Fukushima 965-8580, Japan Tel: +81242 37-2736 Fax:+81242 37-2760 email: saji@u-aizu.ac.jp url: http://enformtk.u-aizu.ac.jp bib: http://www.researcherid.com/rid/B-9188-2009 code: https://github.com/sajinh On Mon, Aug 5, 2013 at 2:38 AM, Hubert Wagner wrote: > Hello Mr Schroeder : > > > Then this is a JavaScript question and has nothing to do with Ruby. > > I use RubyFrontier. This allows one to use ERB on web pages produced by > RF. > So, an item like this : > > <% ruby code %> is executed when the page is formatted. > > Do I gather this is the only way Ruby can be made to work in a web page? > i.e. only at the moment the page is written out to HTML? Ruby routines > cannot be called directly from the web page? > > Regards : Hubert Wagner > > -- > Posted via http://www.ruby-forum.com/. > > --089e0149d17a30a11d04e322fcaf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> Do I gather this is the only way Ruby = can be made to work in a web page?
> i.e. only at the moment the page is written out to HTML? Ruby routines=
> cannot be called directly from the web page?

That is the = way RubyFrontier works (as I understand it)!=C2=A0 A framework like Rails o= r Sinatra may
be used if you want to invoke Ruby routines through = the server.

saji

Saji N Hameed,
ARC-ENV, Center for Advanced Information Science and Te= chnology,
University of Aizu, Tsuruga, Ikki-machi,
Aizuwakamatsu-shi,= Fukushima 965-8580,
Japan
=C2=A0 =C2=A0 =C2=A0 =C2=A0
Tel: +81242 37-2736
Fax:+81242 = 37-2760
=C2=A0email: saji@u-aizu.ac.jp
=C2=A0url: http://enformtk.u-aizu.ac.jp
=C2=A0bib: http://www.researcherid.com/rid/B-9188-2009


On Mon, Aug 5, 2013 at 2:38 AM, Hubert W= agner <lists@ruby-forum.com> wrote:
Hello Mr Schroeder :

> Then this is a JavaScript question and has nothing to do with Ruby.
I use RubyFrontier. This allows one to use ERB on web pages produced by
RF.
So, an item like this :

<% ruby code %> is executed when the page is formatted.

Do I gather this is the only way Ruby can be made to work in a web page? i.e. only at the moment the page is written out to HTML? Ruby routines
cannot be called directly from the web page?

Regards : Hubert Wagner

--
Posted via http://= www.ruby-forum.com/.


--089e0149d17a30a11d04e322fcaf--