Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82288

ajax url file path question

$
0
0

Hi Everyone, I have a silly question but kind of bother me. So I have the following code: What I want is Change the File Path from "data.json" to another folder path like "../Data/data.json"

But it seems like Datatables alert error to me, I suspect it's the "url" didn't find the proper file path? I just simply want to put the actual json file in another folder. Please advice. Thank you.

$('#example').dataTable( 
{  "ajax": 
           {    "url": "data.json",    
                "dataSrc": "tableData"  }} 
);

Viewing all articles
Browse latest Browse all 82288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>