Draw when downloading sLanguage
Draw when downloading sLanguage
ColorAnt
Posts: 5Questions: 0Answers: 0
Is it a bug?
Create dT-object, declare oLanguage.sUrl.
Invoke redraw on dT-object
[code]
var table = $("#myId").dataTable({
"oLanguage":{
"sUrl":'/resources/js/datatable-language-ru_RU_alternative.js'
},
});
table.fnDraw();
[/code]
$("#myId") already mark as dT-object, but load oLanguage is anisochronous, and we have
[code]
var sZero = oLang.sZeroRecords;
[/code]
equal "undefined"
and exeption in _fnInfoMacros in
[code]
return str.
replace(/_START_/g, sStart).
replace(/_END_/g, sEnd).
replace(/_TOTAL_/g, sTotal).
replace(/_MAX_/g, sMax);
[/code]
I offer use flag, that indicate what loading are not completely, and cancelled redraw.
Create dT-object, declare oLanguage.sUrl.
Invoke redraw on dT-object
[code]
var table = $("#myId").dataTable({
"oLanguage":{
"sUrl":'/resources/js/datatable-language-ru_RU_alternative.js'
},
});
table.fnDraw();
[/code]
$("#myId") already mark as dT-object, but load oLanguage is anisochronous, and we have
[code]
var sZero = oLang.sZeroRecords;
[/code]
equal "undefined"
and exeption in _fnInfoMacros in
[code]
return str.
replace(/_START_/g, sStart).
replace(/_END_/g, sEnd).
replace(/_TOTAL_/g, sTotal).
replace(/_MAX_/g, sMax);
[/code]
I offer use flag, that indicate what loading are not completely, and cancelled redraw.
This discussion has been closed.
Replies
Allan
And I suggested what additional test not be over, and reliability are increase.