consuming REST API on client side using JQuery for phonegap project
<p>My code is like</p>

<pre><code>$.ajax({
    cache: false,
    url: 'http://khara37793punl.bentley.com/LearnService/LearnService.svc/REST/GetBrowseLPDetails/1/0/0/en',
    data: "{}",
    type: 'GET',
    crossDomain: true,
    dataType: 'json',
    success: function() { alert("Success"); },
    error: function() { alert('Failed!'); },
});
</code></pre>

<p>I'm trying to access the REST API from client side using JQuery but it gives error like
<code>XMLHttpRequest cannot load http://khara37793punl.bentley.com/LearnService/LearnService.svc/REST/GetBrowseLPDetails/1/0/0/en?{}&amp;_=1349245403812. Origin null is not allowed by Access-Control-Allow-Origin.</code></p>

<p>So may someone help me to resolve this error..?</p>
