View Full Version : Suppress standard submit with ExtJS
dimebag
22 Oct 2010, 4:57 AM
Hi folks, I have a existing app and enhanced it with ext. Now I need to suppress a standard submit of a form (non-ext). Is there a way to do this with Ext, maybe with e key-eventhandler?
Many thanks!
Animal
22 Oct 2010, 5:05 AM
Listen for the event then stop it.
dimebag
22 Oct 2010, 6:20 AM
I did this with no success:
var searchform = Ext.get('searchform');
searchform.on('submit', function(event, html, obj) {
event.stopPropagation();
});
plalx
22 Oct 2010, 6:23 AM
Try returning false instead.
Condor
22 Oct 2010, 6:36 AM
event.stopEvent() is even better.
dimebag
22 Oct 2010, 7:17 AM
That works, thanks my friends!
Powered by vBulletin® Version 4.2.3 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.