- Joined
- Aug 14, 2019
- Messages
- 1
- Reaction score
- 0
Hi - took a while to track down, but we've got a number of users with the Click to Call Chrome extension installed (https://chrome.google.com/webstore/detail/3cx-click-to-call/ingddacbmngapennhhfhnpjnaklakach)
On one of our web systems we have a form that has JQuery submit hooks associated to validate and process a form. Example...
With the extension disabled, the submit is triggered. When the extension is active it is not called. "submitting form" is no longer sent to the console (I can change it to an alert and it doesn't appear). There are no console errors logged that I can see. The form appears to submit without running any of the code. The script has worked fine for several years, and I have tested it in the cut-down state above. The form itself is a bare HTML form with a couple of inputs and a submit button - nothing out of the ordinary).
As a workaround I have added our web system as an exception, and all works fine again. However, I'm concerned that the extension may affect the functionality of other sites. I haven't tried it with any other jquery event hooks.
Any help appreciated, thank you!
On one of our web systems we have a form that has JQuery submit hooks associated to validate and process a form. Example...
JavaScript:
jQuery(document).ready(function($) {
$('#formDemo').submit( function(event) {
console.log("submitting form");
event.preventDefault(); // stop form changing page
// ...validation code... (removed)
// if validation passed, send form over AJAX, else return error message (removed)
});
});
With the extension disabled, the submit is triggered. When the extension is active it is not called. "submitting form" is no longer sent to the console (I can change it to an alert and it doesn't appear). There are no console errors logged that I can see. The form appears to submit without running any of the code. The script has worked fine for several years, and I have tested it in the cut-down state above. The form itself is a bare HTML form with a couple of inputs and a submit button - nothing out of the ordinary).
As a workaround I have added our web system as an exception, and all works fine again. However, I'm concerned that the extension may affect the functionality of other sites. I haven't tried it with any other jquery event hooks.
Any help appreciated, thank you!