E
Eric Schwartz
I've been using cgi.rb to generate HTML for a while now, and I quite
like it, but there appears to be no support for a number of javascript
hooks, such as onChange for popup menus. Is there an easy way to
tweak them into existence, or should I just write some patches for
cgi.rb and submit them?
Here's what I'm trying to do:
cgi.popup_menu('NAME' => 'myname',
'onChange' => "alert('Somebody selected an index!');",
'VALUES' => menu_contents)
As a quick inspection of the cgi.rb source shows, popup_menu does not
pass the onChange parameter to select(). What's the most ruby-ish way
around this?
-=Eric
like it, but there appears to be no support for a number of javascript
hooks, such as onChange for popup menus. Is there an easy way to
tweak them into existence, or should I just write some patches for
cgi.rb and submit them?
Here's what I'm trying to do:
cgi.popup_menu('NAME' => 'myname',
'onChange' => "alert('Somebody selected an index!');",
'VALUES' => menu_contents)
As a quick inspection of the cgi.rb source shows, popup_menu does not
pass the onChange parameter to select(). What's the most ruby-ish way
around this?
-=Eric