可以在c#中使用Windows Phone 7吗? [英] could it possible in c# using windows phone 7?

查看:66
本文介绍了可以在c#中使用Windows Phone 7吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i我正在开发简单的windows phone 7,下面附带脚本功能可以在windows phone 7中,请帮助我....



< script type =text / javascript>

document.addEventListener(deviceready,onDeviceReady,false);



函数onDeviceReady(){}

$(document).ready(function(){



//按钮点击功能

$('#btn')。点击(function(){

alert(成功);

// var appid = $(#appid)。val();

var p1 = $(#p1)。val();



$ .ajax({

类型:'POST',

url:https://mindapp-pulpy.rhcloud.com/ AuthXmlPulpy,

数据:{

appid:'MPAPP_0028',

p1:p1},



dataType:xml,

成功:功能(数据)

{



alert(成功);

$(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('

  • 艺术家: '+' '+ a +'
    相册:'+' '+ b +'

  • ');

    $(#结果)。listview(刷新);





    });



    }







    }); // ajax结束



    }); //点击功能结束









    // $(形式)[0] .reset();

    $(#page2 #result)。empty();





    }); //文件结束



    < /脚本>

    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>

    推荐答案

    (document).ready(function(){



    //按钮点击功能
    (document).ready(function() {

    //button click function


    ('#btn')。点击(function(){

    alert(成功);

    // var appid =
    ('#btn').click(function(){
    alert("success");
    //var appid=


    (#appid)。val();

    var p1 =
    ("#appid").val();
    var p1=


    这篇关于可以在c#中使用Windows Phone 7吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆