EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on June 09, 2020, 02:59:11 AM



Title: Latest Chrome Causing Ajax Form Issues
Post by: devnull on June 09, 2020, 02:59:11 AM
Have an application that has been using easyui for last 5 years and all of a sudden, with the latest chrome for windows updates we are getting problems with form submissions.

Everything works fine on chrome osx and firefox and safari, but latest 83 version of chrome appears to be broken.

When a form is submitted and the onSubmit() returns true as it should, no request is actually sent from the browser to the server, and then the onSuccess() event fires, even though no request was send and therefore nothing was received.

As stated, this has been working without issue for the last 5 years and only seems to be related to chrome windows, problem is all of our customers are using chrome windows.



Title: Re: Latest Chrome Causing Ajax Form Issues
Post by: devnull on June 09, 2020, 05:15:22 AM
I believe this is the cause:

https://www.google.com/search?q=ajax+chrome+83+cancels+ajax&oq=ajax+chrome+83+cancels+ajax&aqs=chrome..69i57.286j0j4&sourceid=chrome&ie=UTF-8

Any solutions ?


Title: Re: Latest Chrome Causing Ajax Form Issues
Post by: jgautier on June 10, 2020, 11:03:05 PM
Hi,

Maybe It will be fixed soon :
https://bugs.chromium.org/p/chromium/issues/detail?id=1084874

Edit :
I've tried 83.0.4103.97 (Build officiel) (OS X 10.13.6) but issue is still there...

JG


Title: Re: Latest Chrome Causing Ajax Form Issues
Post by: Aod47 on June 11, 2020, 05:35:58 PM
try to set iframe: false,

Code:
$('#ff').form('submit', {
                iframe: false,
                url: 'saveFormPatronStatus.ashx',
                onSubmit: function(param) {
                    param.id = id;
                    param.barcode = barcode;
                    param.status = status;
                    var isValid = $(this).form('validate');
                    if (!isValid) {
                        $.messager.progress('close'); // hide progress bar while the form is invalid
                    }
                    return isValid;
                },
                success: function(result) {
                    console.log(result);
                }
            })


Title: Re: Latest Chrome Causing Ajax Form Issues
Post by: devnull on June 12, 2020, 03:46:58 PM
I managed to solve this in my case on version 1.4.4:

jquery.easyui.min.js

Code:
//_51c.attr("src",window.ActiveXObject?"javascript:false":"about:blank");
_51c.attr("src","javascript:false");

But I am only allowing chrome / webkit browsers, no IE.

It is indeed caused by chrome cancelling requests on frames.


Title: Re: Latest Chrome Causing Ajax Form Issues
Post by: juancitop on June 16, 2020, 05:53:29 AM
In my case, the problem occurs only in one form on entire system, this form is the greatest one (many fields plus parameters, over 100).
The only solution was use an array to pass some parameters in order to reduce quantity and the form beggin to work again.