This program runs well with phonegap server, but unable to run with other server or from the source i.e (file:///C:/Users/samsung%20pc/Desktop/arts/www/index_1_2.html)
When I run this program it gives me error :
- Origin file: not found in Access-Control-Allow-Origin header.
- XMLHttpRequest: Network Error 0x80700013, Could not complete the operation due to error 80700013.
What is wrong in this program. Any suggestion will be fine. Here is my code:
$(document).ready(function(){
$.ajax({
type: "GET",
url: "http://api.wolframalpha.com/v1/spoken?i=meaning+of+google&appid=...",
async: false,
dataType: "text",
success: function (data, textStatus, jqXHR) {document.write(data);},onerror:function(e){document.write(e);}});});