Multiple Datatables and oLanguage file

Multiple Datatables and oLanguage file

quinodequinode Posts: 4Questions: 0Answers: 0
edited January 2011 in General
I have several datatables on the same page and I'm calling each time :
[code]
"oLanguage": {"sUrl": "http://example.com/media/js/fr_FR.json"},
[/code]
Is there a way to apply this setting globally (this makes a download of the js file each time)

thank you!!

Replies

  • John ArcherJohn Archer Posts: 56Questions: 1Answers: 0
    edited September 2011
    I have got the same "problem", which means I would be also interested in a solution for that!

    Thanks a lot!

    Regards!
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    read the file into a variable and set oLanguage to that variable.

    the language file is valid JSON, right?
  • John ArcherJohn Archer Posts: 56Questions: 1Answers: 0
    Yup, you are right, fbas, this is valid JSON.

    Thanks a lot, mate! You hint was fabulous, works like a charm! Brilliant!!!
This discussion has been closed.