Programming Languages White Papers
Dynamically Generate a Selection List in a Rails Template
Overview This hack creates a select element from server-side data using a Ruby on Rails application. Unlike the typical manner in which a web widget is generated in a web page, the user chooses the content for the pop-up, and then the pop-up appears out of the blue, without anything else on the page changing. The selections that the user sees in the pop-up derive from a server-side component; they are not just hard-coded JavaScript or HTML that is part of the web page. This hack has the same behavior as some of the earlier hacks, but the path the code takes to produce its effects is quite different. A Rails application wraps all of the XMLHttpRequest mechanics behind its own methods.
| Publisher | O'Reilly Media | File Format | |
|---|---|---|---|
| Date Published | March 2006 | ||
| Format | Book chapters | ||
| Topics | |||



