2013-10-14 52 views

回答

0

單證找到了答案。

function getRaceData() { 
var postBody = ""; 

    postBody = "rid="+theRID; 

    var parameters = new AppMobi.Device.RemoteDataParameters(); 
    parameters.url = "http://MyWebSite.com/php_src/getRaceData.php"; 
    parameters.id = "1007"; 
    parameters.method = "POST"; 
    parameters.body = postBody;  

    jq.ui.showMask('loading race data'); 
    AppMobi.device.getRemoteDataExt(parameters); 
    } 
    //then somewhere in your event handler, check the ID of the response and process the  JSON.... 
    case 1007: //got race data 
var raceData = jq.parseJSON(event.response); 

jq("#raceRCList").hide(); 

jq("#raceRCname").html(raceData.race_name); 
    jq("#raceRCdate").val(raceData.date); 
jq("#raceRCstart").val(raceData.start_time); 

    jq("#raceRCData").show(); 

break; 
相關問題