No se puede encontrar la variable en Phonegap usando javascript
Cuando ejecuto este programa en el navegador, obtengo una respuesta que falla, pero ejecuto esto en un teléfono Android. Recibo un error de referencia que no puedo encontrar variable.datos. El código funciona perfectamente en el emulador también. Ayuadame
<html>
<head>
<script type="text/javascript" charset="utf-8" src="phonegap-1.0.0.js"></script>
<script type="text/javascript" charset="utf-8" src="cordova-2.4.0.js"></script>
<script type = "text/javascript">
function getResponse(){
var url = "http://www.apexweb.co.in/apex_quote/phone_gap/uname_validation.asp?un=9999999999&pwd=123456789&callback=your_callback";
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= url;
head.appendChild(script);
your_callback(data); //here i am getting reference error, can't find variable data
}
function your_callback(data){
var st = data.status;
alert(st);
}
</script>
</head>
<body>
<button input type = "button" onClick = "getResponse()"> GetResponse </button>
</body>
</html>