2010-06-01 57 views
0
function populate_customer_details(){ 
     $.ajax({ 
      type : 'POST', 
      url : 'populate_customer_details.php', 
      data: { 
       email : $('#txt_email_id').val() 
      }, 
      success : function(data){ 
       if(data=="NOROWSFOUND"){ 
        alert("Sorry, Email ID not exist in our database"); 
        document.getElementById("txt_email_id").focus();  

       }else{ 
        var val = explode_all_into_arr(data,"|=|"); 
        document.getElementById("FirstName").value = val[0]; 
        document.getElementById("LastName").value = val[1]; 
        document.getElementById("mobilecountrycode").value = parseInt(val[2]); 
        document.getElementById("MobileNo").value = val[3]; 
        document.getElementById("homecountrycode").value = parseInt(val[4]); 
        document.getElementById("HomeNo").value = val[5]; 
        document.getElementById("PaxEmail").value = val[6]; 
        document.getElementById("PaxEmailConf").value = val[6]; 
       } 
      }, 
     }); 
} 

这是我的片断目的在于获得客户详细信息并填充到文本框和组合框做工精细,jQuery的问题在FF

也就是说

名字将追加到名字文本字段,

Secondname将追加到Secondname文本字段,

同样喜欢mobilecountrycode(但这是下拉组合),

一些时间组合的selectedIndex做工精细,但过一段时间没有选择的价值,

我不知道什么是s的问题...在IE

没有什么工作,

也呈现出在IE对象预期的错误,

我有ajax_common.js:在这方面,我加入上面的脚本,

在页面顶端

第一i-包括的jquery.js , 然后我包括ajax_common.js文件,

但不知道为什么这个问题。

问候

(注:我包括的jquery.js)

回答