Page 1 of 1

ajax in mobile

Posted: Wed Jan 21, 2015 12:47 pm
by Alexandr Efimenko

help... does not run the following code
$.ajax({
type: "POST",
url: "http://mysite.com/_vk.php",
cache: false,
success: function(html){
$('.ht').html('hi end');
}
});

but when debugging, you can see what is the query...
and the element with the class "ht" is present on the page


ajax in mobile

Posted: Wed Jan 21, 2015 2:08 pm
by Ihor Didevych

Hi Alexandr,

1) you should get an error in the console
or
2) it is because of CORS, thus it will work only on a device or with proxy


ajax in mobile

Posted: Wed Jan 21, 2015 2:11 pm
by Alexandr Efimenko

errors in the console, no, now I'll try to start with device

thank you


ajax in mobile

Posted: Wed Jan 21, 2015 2:51 pm
by Alexandr Efimenko

no, not working on device (((

what is the problem?


ajax in mobile

Posted: Wed Jan 21, 2015 4:19 pm
by Evgene Karachevtsev

Hello Alexandr,

Could you please clarify, do you get it working in a browser with enabled proxy?