What is the size limit for jQuery ajax call return value?

It would seem that there is a size limit on the return value of a jQuery ajax call of about 70K. Can anyone confirm this? I am trying to return a longer string than in ASP.NET. The HTML that I am returning is displayed until I get to this size. After that, nothing is displayed on my page. I do not see the error message, and I do not see this documented anywhere. Here is my ajax call.

 $.ajax(
            {
                type: "POST",
                url: _urlGetCandidatesForAdvancedSearch,
                data: searchCriteria,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (msg)
                {
                    ShowSearchResults(msg.d);
                },
                error: function (xhr, ajaxOptions, thrownError)
                {
                    HideBusyIcon();
                    alert(thrownError.toString());
                }
            }
            );

Thanks Jay

+3
source share
2 answers

jQuery $ .ajax () has no limit (as far as I know), but ASP.NET has a limit:

<system.web.extensions>  
    <scripting>  
        <webServices>  
            <jsonSerialization maxJsonLength="x"></jsonSerialization>  
        </webServices>  
    </scripting>  
</system.web.extensions>
+5
source

- AJAX, , - ? 70K , , , , , 100K.

, ?

FYI maxJsonLength 102400 ( UTF-8, [ ]), 100K. , . 70K ...

+1

Source: https://habr.com/ru/post/1788110/


All Articles