weixin_33724046 2014-08-13 10:37 采纳率: 0%
浏览 55

AJAX响应限制?

Please see the code below:

<System.Web.Services.WebMethod()> _
    Public Shared Function LinkedUSNs(ByVal usn As String, ByVal requester As String, ByVal reason As String, ByVal terminalip As String, ByVal strCon As String) As String
        Dim objUSNs As New clsUSNs(strCon)
        Dim objTable As Table = objUSNs.LinkedUSNs(CInt(usn), requester, CInt(reason), terminalip)
        Return getHTML(objTable)
    End Function

A HTML table is returned to an AJAX caller. The code works as long as the table is not too big. Once the table exceeds x rows then neither the onSuccess nor onFailure event handlers are called.

Why is this? Is there perhaps a restriction on the size of an AJAX response? Surely onFailure should be called in this case?

  • 写回答

1条回答 默认 最新

  • weixin_33743661 2014-08-13 10:55
    关注

    The problem is not with AJAX, its with thr browser.. The reason why you asked the question, is because i myself has invested a lot of time searching and working on this issue.

    If you consider a normal 50 column table, with 5000 rows, your browser is expected to turn non-responsive receiving such huge response, or while rendering such table..

    What i suggest you is to implement pagination, coz i myself i have done so.

    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序