Using sUrl in defaults

Using sUrl in defaults

mdaunmdaun Posts: 2Questions: 0Answers: 0
edited November 2013 in DataTables 1.9
Hi,

i'm using DataTables 1.9.4 and try to use the sUrl feature in the defaults function:
[code]
$.extend($.fn.dataTable.defaults, {
"oLanguage": {
"sUrl": "/content/resources/language.txt"
},
"bProcessing": true,
"bStateSave": true,
"bDestroy": true
});
[/code]

I encounter the same problem mentioned here: http://datatables.net/forums/discussion/10110/internationalisation-problem/p1
[quote]...the datatable is not bound and by default, the "processing..." is always displayed.[/quote]

Thanks
Matthias

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Use:

    [code]
    $.extend(true, $.fn.dataTable.defaults, {
    [/code]

    since you are extending a nested object.

    Allan
  • mdaunmdaun Posts: 2Questions: 0Answers: 0
    Works. Thanks, Allan!
This discussion has been closed.