ajax - always getting empty response
Hi all,
I am making a call like -
$('#display').load(adnwurl, function(response, status, xhr) {
alert(response);
});
And also tried with -
$.get(adnwurl,
{},
function(data) {
alert('Load was performed. =>'+data);
}, "html");
In both the cases I am getting an empty response instead of expected html response.
If I just copy paste this adnwurl in browser, I do get a proper html response. Its not working with ajax call.
adnwurl = "http://ads.admarvel.com/fam/postGetAd.php?site_id=4764&partner_id=70606a913077034c&timeout=5000&version=1.5&language=jsp&format=wap&testing=1&target_params=AGE=>29||DOB=>1981-08-02||AREA_CODE=>408||POSTAL_CODE=>95014||GENDER=>m||GEOLOCATION=>37.314,-122.044||INCOME=>80000||MARITAL=>married||KEYWORDS=>football cricket epl tennis india australia||UNIQUE_ID=>u001&phone_headers=AGE=>29||DOB=>1981-08-02||AREA_CODE=>408||POSTAL_CODE=>95014||GENDER=>m||GEOLOCATION=>37.314,-122.044||INCOME=>80000||MARITAL=>married||KEYWORDS=>football cricket epl tennis india australia||UNIQUE_ID=>u001"
I am clueless here.
Any help?
Thanks,
Siddharth