I have the following script:

$('ItemEditFormID').addEvent('submit', function(e) {
                                        e.stop();
                                        this.set('send', {
                                                onComplete: function(response) {
                                                        $('panel1').set('html', 
response);
                                                }
                                        });
                                        // Send the form.
                                        this.send();
                                });

And the following form:

<form id="ItemEditFormID" method="post" action="/MyLocalv2/Dashboard/
filters/filterItemEditPopulate.cfm">
  <select name="ColumnName" onchange="$('ItemEditFormID').submit();">
        <option value="etc">etc</option>
  </select>
  <input type="submit" value="save" />
</form>

Whenever I click the "submit" button, the form submission is stopped
via e.stop();
But if I change the select (triggering the onChange event), the
submission is not stopped.

Is there a different way of stopping a submission event when triggered
by an onChange?

Thx

Rodrigo

Reply via email to