EasyUI Forum
May 01, 2024, 07:11:37 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Latest Chrome Causing Ajax Form Issues  (Read 5697 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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.

Logged

-- Licensed User --
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #1 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 ?
Logged

-- Licensed User --
jgautier
Newbie
*
Posts: 20


View Profile
« Reply #2 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
« Last Edit: June 10, 2020, 11:16:33 PM by jgautier » Logged
Aod47
Jr. Member
**
Posts: 83


View Profile
« Reply #3 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);
                }
            })
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #4 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.
Logged

-- Licensed User --
juancitop
Newbie
*
Posts: 22


View Profile Email
« Reply #5 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!