sAjaxSource absolute direcotry

sAjaxSource absolute direcotry

jijlijijli Posts: 5Questions: 0Answers: 0
edited May 2012 in General
I have a json datasource put into supplier.txt. I am running apache tomcat server. If I put the file inside my appliation, and using relative path, it works fine as below. But I have to put the datasource in a file repository outside the web server, in the same hard driver. For example, in c:/filerepository/supplier.txt.

I just cannot make it worked. May I know how to do this? Thanks!

var oTable = $('#supplier').dataTable( {
"sAjaxSource": "supplier.txt",

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    You can't - this this a security limitation of how Ajax works - otherwise any website would be able to read any file on your hard disk!

    Allan
This discussion has been closed.