Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
He creado un formulario web que incluye un campo de fecha con Date Popup. Al hacer clic en Date Popup el formulario automáticamente se envía en lugar de mostrar el calendario. Esto sucede en IE8 y en IE9. En Firefox no hay problema. Agradezco cualquier sugerencia para corregir este problema. Un saludo desde Guatemala.
Comment | File | Size | Author |
---|---|---|---|
#10 | 1285342-remove-webform-js-debug.patch | 1.09 KB | acbramley |
Comments
Comment #1
jestrada2011 CreditAttribution: jestrada2011 commentedHe notado que la versión webform-7.x-3.11 no hay problema con IE. A partir de la versión webform-7.x-3.12 se da el problema.
Alguna idea?
Pueden responder en ingles, no hay problema, yo traduzco.
Saludos,
Comment #2
quicksketchSo the report in English run through Google translate:
The source of the problem is probably that you are getting a JavaScript error on the page in IE8 and IE9. If there are any errors the JavaScript won't work and you'll get the problem you're describing.
Comment #3
jestrada2011 CreditAttribution: jestrada2011 commentedThank you for responding quicksketch, at the moment work with version 7.x-3.11 that I have not had this problem in IE.
I have problems with versions 7.x-3.12 and 7.x-3.13, upon clicking the calendar popup button, the web form is sent, instead of showing the calendar window. This I have checked on IE8 and IE9 versions. In Firefox and Chrome is not given the problem.
Do not see any JavaScript error or something.
Much appreciate any suggestions you can give me to solve this problem. Best Regards.
Comment #4
rovi CreditAttribution: rovi commentedHello, i have the same problem. On IE8 appears the following error in webform.js (console is not defined at line 24). Any help will be very apreciated. Thanks
Comment #5
quicksketchOh yikes! Looks like we have a line of debugging code in webform.js!
Line 24 of webform.js is this:
The quick fix for this is just to remove that line. We should remove that line and get a new release out quickly, a blatant JavaScript error like that is going to cause all kinds of havoc. Thanks for the report guys.
Comment #6
Ari Gold CreditAttribution: Ari Gold commentedNote that the debugging is not only on line 24, but also 39 and 40.
This was also preventing jquery accordion from working on a page with webform block. Commenting out the debugging lines fixed it!
Comment #7
jestrada2011 CreditAttribution: jestrada2011 commentedThanks, by removing lines 24, 39 and 40 in the webform.js file corrects the problem in IE. Thanks for your help guys.
Comment #8
rovi CreditAttribution: rovi commentedNow works, just remove the lines 24, 39 and 40, thanks to the great community
Comment #9
iwant2fly CreditAttribution: iwant2fly commentedThis works great thanks for the translation and the fix.
Comment #10
acbramley CreditAttribution: acbramley commentedThanks for that, here's a patch that does the job.
Comment #11
joelstein CreditAttribution: joelstein commentedThe issue was prematurely closed in #7 (above).
Removing these three lines from webform.js does the trick. Can we get this committed?
Comment #12
GiorgosKplease apply patch works as expected
Comment #13
quicksketchThanks guys. Sorry I've been busy with lots of personal, work, and other contrib modules. Finally committed to the 7.x-3.x branch. 6.x-3.x was unaffected but I added the extra new-line to webform.js (per the patch in #10) in that branch too.
Comment #16
Gerard CreditAttribution: Gerard commentedReopening. Same problem as #3 this time with version 7.3.15
Upon clicking the calendar popup button the web form is sent. I disabled several modules without effect. Can't exactly tell since when this happens. Can anyone reproduce this?
Comment #17
Gerard CreditAttribution: Gerard commentedComment #18
quicksketchI'm guessing that this may be a separate issue. Turn off JavaScript aggregation on your site and then check the error console in your browser for JavaScript errors. That should identify which JavaScript file is causing the problem.
Comment #19
Gerard CreditAttribution: Gerard commentedI disabled most modules and set the theme to Garland
Only on webform nodes I get this error, also on a webform without date popup.
Do you understand what's going wrong?
Comment #20
quicksketchLooks like the error is coming from collapse.js, the core JS file for creating collapsible fieldsets. Do you have any collapsed fieldsets on the page?
If you would be so kind, please re-close this issue and open a new issue, describing it from the beginning. If it's not related to this old bug (which has been fixed) it should be a new issue.
Comment #21
Gerard CreditAttribution: Gerard commentedComment #22
Augusto182 CreditAttribution: Augusto182 commentedHello.
Reopening. Same problem as jestrada2011 but in firefox. More precisely, in a form loaded in overlay using the colorbox module.
The form is submited when i click on the popup buttom...
I dont know if this is a problem from Webform, o from Colorbox...
Thanks...
Comment #23
quicksketchThis particular bug has been fixed already. Please open a new issue, as this problem was specific to IE.
Comment #24
rahulshah_1988 CreditAttribution: rahulshah_1988 commentedI commented those 3 lines. Still having the same problem. Do we need to do anything to apply the change or simply save the webform.js file and refresh the page on IE. I am using IE 9
Comment #25
rahulshah_1988 CreditAttribution: rahulshah_1988 commentedI commented those 3 lines. Still having the same problem. Do we need to do anything to apply the change or simply save the webform.js file and refresh the page on IE. I am using IE 9