1

Closed

Hooking Form Submit issues

description

In the constructor of the add-on (InformationCard.xml) you search for the form containing the 'object'. If it's not find OK, but if it's found you hook up to its submit event. The problem is that if I modify the DOM - remove the 'object' outside the form the cardspace selector is still triggered on submit. My point is to look for the form (and hook to its submission) after the user has selected a card. It's done this way in IE.
Closed Jan 7, 2010 at 12:08 PM by ignisvulpis
died of age

comments

gserack wrote Apr 20, 2007 at 4:39 PM

So, you add the <object> tag to the form, and then remove it programatically?

Why would you do that? It doesn't need to be in a form anyway.

Certainly, the event handler could verify the <object> is still in the form before submission, but it's still odd.

Garrett