cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quoin Developers <quoin...@gmail.com>
Subject Re: ajax cform and forms_onsubmitHandlers issues
Date Wed, 07 Dec 2005 02:57:01 GMT
It is also necessary to change forms_onsubmit in forms-lib.js to
remove setting the forms_onsubmithandlers to null.

Any suggestions about this? It seems that it's import to know when the
form is finally submitted vs when it is being ajax submitted. Is this
correct?

function forms_onsubmit() {
    if (forms_onsubmitHandlers == null) {
        // Form already submited, but the new page is not yet loaded.
This can happen when
        // the focus is in an input with an "onchange" and the user
clicks on a submit button.
        return false;
    }

...

    // clear it
//    forms_onsubmitHandlers = null; // commented this out

Mime
View raw message