[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Dynamic websites?

Jonathan Denni

10/20/2006 7:31:00 PM

can ruby be used to create dynamic web pages? for example, using ruby to
create rollover images rather than javaScript

--
Posted via http://www.ruby-....

4 Answers

James Britt

10/20/2006 7:40:00 PM

0

Jonathan Denni wrote:
> can ruby be used to create dynamic web pages? for example, using ruby to
> create rollover images rather than javaScript

That happens in the browser. Browsers understand JavaScript, but not Ruby.

There are Ruby tools that will generate the needed JavaScript, though.


--
James Britt

"I have the uncomfortable feeling that others are making a religion
out of it, as if the conceptual problems of programming could be
solved by a single trick, by a simple form of coding discipline!"
- Edsger Dijkstra

Josef 'Jupp' Schugt

10/20/2006 10:21:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan Denni wrote:
| can ruby be used to create dynamic web pages? for example, using
| ruby to create rollover images rather than javaScript

Please explain "to create rollover images". Thank you.

Jupp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFOUuirhv7B2zGV08RAj5hAJ485mPcXpzPqAhub3eRGzg7wxhhTACg5Wz1
pmsKl7WSkCgylBZ2g63DsJk=
=8RpR
-----END PGP SIGNATURE-----

Paul Lutus

10/20/2006 11:43:00 PM

0

Jonathan Denni wrote:

> can ruby be used to create dynamic web pages? for example, using ruby to
> create rollover images rather than javaScript

In order for server-side code to roll images over, it would have to push new
content. This isn't how browsers normally work, although they can be forced
to do it (using, for example a META timeout tag). But this seems to be
bending over backward to avoid the obvious JavaScript solution.

--
Paul Lutus
http://www.ara...

David Vallner

10/21/2006 2:52:00 AM

0

Jonathan Denni wrote:
> can ruby be used to create dynamic web pages? for example, using ruby to
> create rollover images rather than javaScript
>

Mildly (more) OT, I wouldn't use Javascript for this purpose. If you
need button highlights, use CSS and the :hover metaselector, give or
take wrapped in a bogus link while IE6 slowly phases out of existence
(FINALLY!)

David Vallner