Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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>
    Posted

    This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



    CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900