Hey,
I have been using JS to make api calls but after I've been told that the only way to make this work is by using proxy, I tried to change my code a little but then I got error that allow url include is disabled.
I read on the net that this function is disabled for security purposes and there's a wayaround it. so I set this code
myProxy.php
Code:
<?php
$page = ($_GET['page']) ? $_GET['page'] : "default.php";
?>
This is the js code for page to invoke the service
Search.js
Code:
var API = new Tiggr.RestService({
'url': 'myProxy.php?page=http://api.indeed.com/ads/apisearch',
'dataType': 'xml',
'type': 'get',
});
I guess I must be doing something wrong here because I still can't make any calls on a cross domain.
Any suggestions?
Thanks.