Use the following code to which shows that you are getting valid json
response even though the request is https.
I tested just now on Android 2.1 emulator.
I used Dojo's ajax api method to get json data.
handleAs:"json" saves you from using json parser in javascript.
You can also use jQuery's Ajax api methods to fetch json data array.
--------------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /
>
<title>Test Ajax HTTPS</title>
<script type="text/javascript" src="dojo/dojo.js"
djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
dojo.require("dojox.mobile.parser");
dojo.require("dojox.mobile");
dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
function test(){
dojo.xhrGet({
// The URL to request
url: "
https://www.korebe.com/Android/Bilgi",
handleAs:"json",
// The method that handles the request's successful result
// Handle the response any way you'd like!
load: function(result) {
alert("The message is: " + result.ucret_sms);
}
});
}
</script>
</head>
<body onload="test()">
yes
</body>
</html>
--------------------------------------------------------------------------------------------------------
On Jul 8, 10:12 am, Alp <
dral...@gmail.com> wrote:
> I am developing a phonegap application on Android which uses ajax
> requests to the server with https protocol. The SSL certificate that
> the server uses now is trusted and verified ( you can check it if you
> want to:
https://www.korebe.com/Android/Bilgi) but result of the