# Dynamic websites?

**URL:** <https://www.ruby-forum.com/t/dynamic-websites/73051>\
**Category:** Ruby\
**Created:** [October 20, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/dynamic-websites/73051 "2006-10-20T21:30:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [October 20, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/dynamic-websites/73051/1 "2006-10-20T21:30:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [October 20, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/dynamic-websites/73051/2 "2006-10-20T21:35:18Z")

</div>

No.

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [October 20, 2006, 9:41pm UTC](https://www.ruby-forum.com/t/dynamic-websites/73051/3 "2006-10-20T21:41:19Z")

</div>

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

“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

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [October 21, 2006, 12:21am UTC](https://www.ruby-forum.com/t/dynamic-websites/73051/4 "2006-10-21T00:21:49Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [October 21, 2006, 1:45am UTC](https://www.ruby-forum.com/t/dynamic-websites/73051/5 "2006-10-21T01:45:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [October 21, 2006, 4:53am UTC](https://www.ruby-forum.com/t/dynamic-websites/73051/6 "2006-10-21T04:53:50Z")

</div>

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