Hi,
i am developing simple windows phone 7,below attached script function is possible in windows phone 7,kindly help me....
<script type="text/javascript">
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {}
$(document).ready(function() {
//button click function
$('#btn').click(function(){
alert("success");
//var appid=$("#appid").val();
var p1=$("#p1").val();
$.ajax({
type: 'POST',
url: "https://mindapp-pulpy.rhcloud.com/AuthXmlPulpy",
data: {
appid:'MPAPP_0028',
p1:p1},
dataType: "xml",
success: function(data)
{
alert("Sucess");
$(data).find("root").each(function(){
a=$(this).find("a").text();
b=$(this).find("b").text();
//c=$(this).find("c").text();
// $.mobile.changePage('#page2');
window.location.href="#page2";
$("#result").append('
Artist:'+' '+ a +'
Album:'+' '+ b +'
');
$("#result").listview("refresh");
});
}
});//ajax ends
});//click function ends
//$("form")[0].reset();
$("#page2 #result").empty();
});//document ends
</script>