"Karl Guertin" <[EMAIL PROTECTED]> writes:
> On 8/31/06, Maram <[EMAIL PROTECTED]> wrote:
>> var myform = document.modificar;
>
> This doesn't look correct, meaning that it looks like IE code. If the
> id="modificar", you'll want to do either a
> document.getElementByID('modificar') or a $('modificar) (mochikit
> shortcut for the same thing) instead.
I prefer getting the form for the object that triggered the event.
Get them from the form attribute.
function triggeredEvent(evt) {
myForm = this.form;
// ...
}
(From the top of my head, it might be in evt.source, but I believe it is
already at the magically mapped "this" object.)
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---