Loading ...
Sorry, an error occurred while loading the content.

Re: DataTable Prob with Large amounts of Data

Expand Messages
  • y_lsmith
    ... David, You should be able to confirm your theory (that it s the JavaScript) by subscribing to the DataTable s onDataReturnEvent or the DataSource s
    Message 1 of 3 , Apr 30, 2008
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "david_c1986" <david_c1986@...>
      wrote:
      >
      > Hi
      > i have a datatable which makes a call to a java servlet to get some
      > data and display it. The datatable works fine for about 300 rows of
      > data but when it gets to around 700 hundred rows it displays the
      > message "No Records Found", a message that usually occurs when the
      > data is sent from the servlet in an incorrect format. The servlet is
      > sending the data in the correct xml format(i have checked this) and
      > only takes about a second to generate and send the response and as i
      > say it works fine for smaller volumes of data. Is there some issue
      > with timeout or memory usage thats is causing the error? Im almost
      > positive the problem is with the javascript side of things and not the
      > java as i have checked the time it takes to produce the output and the
      > format. Any advice would be great
      > Thanks
      > David
      >

      David,

      You should be able to confirm your theory (that it's the JavaScript)
      by subscribing to the DataTable's onDataReturnEvent or the
      DataSource's responseParseEvent with a function that verifies the
      response is in tact. Use FireBug to set a breakpoint in this function
      for better drilling granularity.

      XHR DataSources default to NOT use a connection timeout
      (http://developer.yahoo.com/yui/docs/YAHOO.util.DataSource.html#property_connTimeout)
      so it's probably not a latency issue.

      Luke
    • emmett_mclean
      Have you confirmed that the data doesn t have any single quote or double quote characters that are messing up the rendering engine? If you have control over
      Message 2 of 3 , Apr 30, 2008
      • 0 Attachment
        Have you confirmed that the data doesn't have any single quote or
        double quote characters that are messing up the rendering engine?

        If you have control over the XML parse those characters out and see if
        that helps.

        Also, if you have control over the XML, you might consider swapping
        out from a XML Datasource to a JavaScript DataSource.
      Your message has been successfully submitted and would be delivered to recipients shortly.