On Oct 5, 7:05 am, John Lorance <john.lora... gmail.com> wrote:
> The Problem:
> onclick_mybutton= function(e)
> {
> return myJavaScriptFunction(this.form,
target_id, e);
> }
>
> Now, I get everything rendered just fine (so I can see
the button
> represented by btn_left.png)... however, the browser
doesn't execute
> the new function (seen above) on click... .
Not sure, but:
- IIRC, 'this' in the context of the event handler is bound
to the
object that fired the event (your input). If not it's bound
to the
'onclick_mybutton' function. Either way, neither have a
'form'
attribute AFAICS.
- where's target_id come from?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "MochiKit" group.
To post to this group, send email to mochikit googlegroups.com
To unsubscribe from this group, send email to
mochikit-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---
|