Google Chrome and fnReloadAjax

Google Chrome and fnReloadAjax

Taylor514ceTaylor514ce Posts: 74Questions: 8Answers: 0
edited June 2012 in General
My table is set to NOT paginate, it is set to infinite scroll. See previous thread:

http://datatables.net/forums/discussion/8074/scroll-datatable-to-bottom#Item_6

Ajax source, with fnReloadAjax to periodically load updated source into the datatable.

Works fine in IE and Firefox, but with Google Chrome, with each Reload the entire table disappears, appears, renders, etc.

Any workarounds?

My script block:

[code]


$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw )
{
if ( typeof sNewSource != 'undefined' && sNewSource != null )
{
oSettings.sAjaxSource = sNewSource;
}

this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;
var iStart = oSettings._iDisplayStart;
var scrollPos=$(".dataTables_scrollBody").scrollTop();

oSettings.fnServerData( oSettings.sAjaxSource, [], function(json) {
/* Clear the old information from the table */
that.oApi._fnClearTable( oSettings );

/* Got the data - add it to the table */
var aData = (oSettings.sAjaxDataProp !== "") ?
that.oApi._fnGetObjectDataFn( oSettings.sAjaxDataProp )( json ) : json;

for ( var i=0 ; i

Replies

  • Taylor514ceTaylor514ce Posts: 74Questions: 8Answers: 0
    Bump... has anyone else encountered this issue with Chrome? Thanks.
  • fearednerdfearednerd Posts: 44Questions: 0Answers: 0
    It's a known issue that chrome doesn't load local files with ajax

    http://code.google.com/p/chromium/issues/detail?id=40787&q=ajax%20local&colspec=ID%20Stars%20Pri%20Area%20Feature%20Type%20Status%20Summary%20Modified%20Owner%20Mstone%20OS
  • Taylor514ceTaylor514ce Posts: 74Questions: 8Answers: 0
    Thanks. This isn't a local file. It's a file served through an Ajax call to a fully qualified URL. The issue isn't that it is not loading the file, the issue is with the way it renders and re-renders the table with each reload.
This discussion has been closed.