[WEBrick] xmlhttprequest and iframe reload

Here is some code I want to share.
Suggestions for improvements are welcome :slight_smile:

xmlhttprequest.rb

xmlhttprequest.rb (3.27 KB)

iframe_reload.rb (1.58 KB)

···

=================

This is an example of how to use XMLHttpRequest.
Requires either Konqueror 3.3.1, Firefox 1.0 or better.

In order to start the servlet, type:
ruby xmlhttprequest.rb

In your browser you can goto:
http://localhost:10080/

iframe_reload.rb

This is an example of how to reload an <iframe>.
Requires either Konqueror 3.2.2, Firefox 1.0 or better.

In order to start the servlet, type:
ruby iframe_reload.rb

In your browser you can goto:
http://localhost:10080/

WEBrick is indeed wonderful. Thanks.

--
Simon Strandgaard