On Jun 27, 9:33 pm, fxn <fxno...@gmail.com> wrote:
> I want to add programmatically a function call to some onkeypress,
> taking into account that perhaps it already has something assigned.
> This addition is done on window load with the following code (it has
> some Prototype mixed in but it is minimal):
Not "minimal" at all - it uses Prototype.js's Prototype object, $$()
CSS selector and Event function objects and .each Array method
extension. The scope issue you are having is common when attaching
handlers and using the this keyword.
You can get help specific to Prototype.js at the Ruby on Rails:
Spinoffs group:
<URL:
http://groups.google.com.au/group/ru...s?lnk=li&hl=en
>
--
Rob