Url Language data attribute
Url Language data attribute
jovendigital
Posts: 3Questions: 1Answers: 0
Hi, I'm trying to get the translation from an external JSON with that:
data-language='{"url":"/assets/datatable_ES.json"}'
¿Why it doesn't work?
thanks
This discussion has been closed.
Answers
What debugging have you done? Are you seeing any errors? Does that file actually exist in that location?
It is not trying to load anything by ajax. Yes, the file exists, and it does not give any error
Seems to work okay here. I'd need a link to a test page showing the issue, as required in the forum rules, to be able to offer any help.
Allan
mmm, the url has to be absolute? I think is for that. Now works, thanks!
No it doesn't. It does in that case since the
live.datatables.net
domain doesn't have that resource available under it, but for DataTables itself, it doesn't matter where the file is, as long as it can read it.Allan