张传龙 发表于 2013-1-29 08:48:04

ajax

jQuery.ajax({               type:"POST",               url:"product.do?method=sevenOrEightLicenseNo",               data:{plateValue:nameValue},               cache:false,               dataType:"json",               success:function(jsonStr){                        if (jsonStr === null) {                                       return;                                     }                                     else {                                       locaono = jsonStr.carno;                                       jQuery("#m_text_id").val(locaono);                                       locaono = '';                                     }                     initTr3(jsonStr);                     if(jsonStr.isTheLastPage3=="true"){                        jQuery("#pageNo_id3>div:last").css('display','none');                     }               }             }); jQuery.ajax({                                    type:"POST",                                    url:"txn.do?method=getRepairOrderByVehicleNumber&type=ajax&btnType=" + jQuery("#pageType").val() + "&vehicleNumber=" + jQuery("#licenceNo").val(),                                    async:true,                                    cache:false,                                    dataType:"json",                                    error:function(XMLHttpRequest, error, errorThrown) {                                    },                                    success:function(jsonStr) {                                        initCustomerAndVehicle(jsonStr);                                    }                              }                            );
页: [1]
查看完整版本: ajax