0

I'm trying to access to the Json of this link with Javascript of Jquery, I tried a lot of different codes, but nothing to do. This is the file of I want to access: http://www.subspedia.tv/API/getAllSeries.php

And this is an example of one my test:

 <!DOCTYPE html>
 <html>
 <head>
 <title>Subspedia</title>
 <meta charset="utf-8">
 </head>
 <body>

 <script type="text/javascript">
    function foo(data)
    {
        console.log(data);
    }
    var script = document.createElement('script');
    script.src ='http://www.subspedia.tv/API/getAllSeries.php/path/to/jsonp?callback=foo';
</script>

</body>
</html>

What I'm doing wrong? Thanks for further help.

master94ga
  • 53
  • 2
  • 8

0 Answers0