[Project_owners] addeventlistener for submit

Arturo 'Buanzo' Busleiman buanzo at buanzo.com.ar
Thu Mar 1 05:04:17 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi!

I was wondering, mozillazine says that when I use addeventlistener for submit, the "this" object
changes to what we expect.

I'm playing around with this (from within overlay.js in my extension)

window.addEventListener("submit",function(e) {enigform.onSubmit(e); },false);

handler:

onSubmit: function(e) {
},

So, I was wondering: How can I see what this and e make available to me? What can i know about the
form behind that submit? I'd like just to do a getelementby[id/name] over that form, and act
accordingly if the element is found.

I'd be weird to have ability to attach to a submit event, and not getting any info on the calling
form, wouldn't it?

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Mail Hosting Seguro y Consultoria - http://www.buanzo.com.ar/pro/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5s9RAlpOsGhXcE0RAtp/AJ9qqOZFXu7YCMe2uaPtaaRw1rFhnQCfQeEJ
4Qd8MujmK4H9ZIuGRBbdLGo=
=NxtX
-----END PGP SIGNATURE-----


More information about the Project_owners mailing list