2013年10月24日 星期四

javascript-ajax-after-do something standard data for the form



$(document).ready( function() {  //<== standard data for the form
S='tableRead?'+
'table=companyProfile&'+
'fields=CompanyName,CompanyChineseName,BusinessRegisterNumber,recordID&'+
'key=RecordID&value='+1+'&format=S,S,S,S&'+
'callback=?';
$.getJSON(S,
function(data) {
if (data[0]){
Company_name=data[0][0];
BR=data[0][3];
}
ajax2();  // <== do something after ajax
}
); //endofgetJson
});

沒有留言:

張貼留言