1function foot_msg() { 2 3 var mail = $('#txt_emailname').val(); 4 var moile = $('#txt_moile_txt').val(); 5 var Companytxt = $('#txt_Companytxt').val(); 6 var CountryTxt = $('#txt_CountryTxt').val(); 7 var BusinessTxt = $('#select_BusinessTxt').val(); 8 var MessageTxt = $('#txt_MessageTxt').val(); 9 var radio1 = $("input[name='radio1']:checked").val(); 10 11 12 13 14 if (mail == "") { 15 alert('Please fill in complete information'); 16 $('#txt_emailname').focus(); 17 return false; 18 } 19 20 if (moile == "") { 21 alert('Please fill in complete information'); 22 $('#txt_moile_txt').focus(); 23 return false; 24 } 25 26 if (Companytxt == "") { 27 alert('Please fill in complete information'); 28 $('#txt_Companytxt').focus(); 29 return false; 30 } 31 32 // if (CountryTxt == "") { 33 // alert('Please fill in complete information'); 34 // $('#txt_CountryTxt').focus(); 35 // return false; 36 // } 37 38 39 //if (BusinessTxt == "") { 40 // alert('plase select Business Type'); 41 42 // return false; 43 //} 44 45 46 47 48 // if (MessageTxt == "") { 49 // alert('Please fill in complete information'); 50 // $('#txt_MessageTxt').focus(); 51 // return false; 52 // } 53 54 55 56 var myreg = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; 57 if (!myreg.test(mail)) { 58 alert('Please fill in complete information'); 59 $('#txt_emailname').focus(); 60 return false; 61 } 62/* 63 64 var tel = /^1[3456789]\d{9}$/; 65 66 if (!tel.test(moile)) { 67 alert('plase Enter Your moileï¼'); 68 $('#txt_moile_txt').focus(); 69 return false; 70 } 71*/ 72 73 74 $.ajax({
75 type: 'POST', 76 77 //URLæ¹å¼ä¸ºPOST 78 url: '/pmssage_foot.aspx', //è¿éæ¯æåç»å½éªè¯çé¡µé¢ 79 data: { 80 "id": 14, 81 "mail": mail, 82 "moile": moile, 83 "Companytxt": Companytxt, 84 "CountryTxt": CountryTxt, 85 "BusinessTxt": BusinessTxt, 86 "MessageTxt": MessageTxt, 87 "radio1": radio1, 88 "t": Math.random() 89 }, 90 dataType: "json", 91 async:true, 92 success: function (json) { 93 //è¿æ¯ä¸ªéç¹ï¼æ ¹æ®éªè¯é¡µé¢ï¼login.aspxï¼è¾åºçJSONæ ¼å¼æ°æ®å¤ææ¯å¦ç»å½æå 94 //è¿éæç¨1表示ç 95 //staå°±æ¯é£ä¸ªè¾åºå°å®¢æ·ç«¯çæ 示 96 if (json.sta == 1) { 97 alert("Submitted successfully"); 98 $('#txt_emailname').val(""); 99 $('#txt_moile_txt').val(""); 100 $('#txt_Companytxt').val(""); 101 $('#txt_CountryTxt').val(""); 102 $('#select_BusinessTxt').val(""); 103 $('#txt_MessageTxt').val(""); 104 window.location.href="https://www.cdebyte.com/news/813"; 105 106 107 } 108 else { 109 alert(json.info); 110 } 111 } 112 }); 113} 114function checkEmail(email) { 115 var emailRegExp = new RegExp("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"); 116 if (!emailRegExp.test(email) || email.indexOf('.') == -1) { 117 return false; 118 } else { 119 return true; 120 } 121} 122function pro_down_msg() { 123 124 var mail = $('#txt_p_emailname').val(); 125 var moile = $('#txt_p_moile_txt').val(); 126 var Companytxt = $('#txt_p_Companytxt').val(); 127 var CountryTxt = $('#txt_p_CountryTxt').val(); 128 var BusinessTxt = $('#select_p_BusinessTxt').val(); 129 var MessageTxt = $('#txt_p_MessageTxt').val(); 130 var radio1 = $("input[name='radio1_p']:checked").val(); 131 132 133 134 135 if (mail == "") { 136 alert('Please fill in complete information'); 137 $('#txt_p_emailname').focus(); 138 return false; 139 } 140 141 if (moile == "") { 142 alert('Please fill in complete information'); 143 $('#txt_p_moile_txt').focus(); 144 return false; 145 } 146 147 if (Companytxt == "") { 148 alert('Please fill in complete information'); 149 $('#txt_p_Companytxt').focus(); 150 return false; 151 } 152 153 // if (CountryTxt == "") { 154 // alert('Please fill in complete information'); 155 // $('#txt_p_CountryTxt').focus(); 156 // return false; 157 // } 158 159 160 // if (BusinessTxt == "") { 161 // alert('Please fill in complete information'); 162 163 // return false; 164 // } 165 166 167 168 169 // if (MessageTxt == "") { 170 // alert('Please fill in complete information'); 171 // $('#txt_p_MessageTxt').focus(); 172 // return false; 173 // } 174 175 176 177 var myreg = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; 178 if (!myreg.test(mail)) { 179 alert('Please fill in complete information'); 180 $('#txt_p_emailname').focus(); 181 return false; 182 } 183 184 185 /* var tel = /^1[3456789]\d{9}$/; 186 187 if (!tel.test(moile)) { 188 alert('plase Enter Your moileï¼'); 189 $('#txt_moile_txt').focus(); 190 return false; 191 } */ 192 193 194 195 $.ajax({
196 type: 'POST', 197 198 //URLæ¹å¼ä¸ºPOST 199 url: '/pmssage_prodown.aspx', //è¿éæ¯æåç»å½éªè¯çé¡µé¢ 200 data: { 201 "id": 278, 202 "mail": mail, 203 "moile": moile, 204 "Companytxt": Companytxt, 205 "CountryTxt": CountryTxt, 206 "BusinessTxt": BusinessTxt, 207 "MessageTxt": MessageTxt, 208 "radio1": radio1, 209 "t": Math.random() 210 }, 211 dataType: "json", 212 213 success: function (json) { 214 //è¿æ¯ä¸ªéç¹ï¼æ ¹æ®éªè¯é¡µé¢ï¼login.aspxï¼è¾åºçJSONæ ¼å¼æ°æ®å¤ææ¯å¦ç»å½æå 215 //è¿éæç¨1表示ç 216 //staå°±æ¯é£ä¸ªè¾åºå°å®¢æ·ç«¯çæ 示 217 if (json.sta == 1) { 218 alert("Submitted successfully"); 219 $('#txt_emailname').val(""); 220 $('#txt_moile_txt').val(""); 221 $('#txt_Companytxt').val(""); 222 $('#txt_CountryTxt').val(""); 223 $('#select_BusinessTxt').val(""); 224 $('#txt_MessageTxt').val(""); 225 window.location.href="https://www.cdebyte.com/news/813"; 226 227 } 228 else { 229 alert(json.info); 230 } 231 } 232 }); 233 234 235}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.