1function form_search(path) { 2 document.getElementById('cse-search-box').action = path + "search.html"; 3} 4 5 6function load_productlist_transmitterserie(path, serie) { 7 $.ajax({ 8 async: false, 9 type: "POST", 10 datetype: "text/xml", 11 url: path + "Servidor.ashx", 12 data: "consulta=load_productlist_transmitterserie&serie=" + serie, 13 success: function (datos) { 14 if ($(datos).find('NewDataSet').length > 0); 15 $(datos).find('Table').each(function () { 16 var ModelNum = $(this).find('ModelNum').text(); 17 var TWeight = $(this).find('TWeight').text(); 18 var TBattLifeLow = $(this).find('TBattLifeLow').text(); 19 var TBattLifeHigh = $(this).find('TBattLifeHigh').text(); 20 21 add_productToListTransmitterSerie(ModelNum, TWeight, TBattLifeLow, TBattLifeHigh); 22 }); 23 }, 24 error: function (data) { alert("ERROR: " + data.status); }, 25 timeout: 15000 26 }); 27} 28 29function quantityquote(path) { 30 31 32 // for login 33 if ($.cookie('firstname') != null) { 34 var log = '<strong>Returning customer?'; 35 log += ' <i class="fa fa-caret-right"></i>'; 36 log += ' </strong>'; 37 log += ' <a href="' + path + 'login/logout.html">' + $.cookie('firstname') + '</a>'; 38 $('.upper-returning').empty().prepend(log); 39 //$('.upper-returning a').attr('href', 'logout.html'); 40 } 41 else { 42 var log = '<strong>Returning customer?'; 43 log += ' <i class="fa fa-caret-right"></i>'; 44 log += ' </strong>'; 45 log += ' <a href="' + path + 'login.html">Login</a>'; 46 $('.upper-returning').empty().prepend(log); 47 } 48 49 //for quote 50 $.ajax({
51 async: false, 52 type: "POST", 53 datetype: "text/xml", 54 url: path + "Servidor.ashx", 55 data: "consulta=quantityquote", 56 success: function (datos) { 57 if ($(datos).find('NewDataSet').length > 0); 58 $(datos).find('Table1').each(function () { 59 var items = $(this).find('items').text(); 60 61 span = document.getElementById("cart"); 62 txt = document.createTextNode("(" + items + " items)"); 63 span.innerText = txt.textContent; 64 }); 65 }, 66 error: function (data) { alert("ERROR: " + data.status); }, 67 timeout: 15000 68 }); 69} 70(function ($) { 71 $.QueryString = (function (a) { 72 if (a == "") return {}; 73 var b = {}; 74 for (var i = 0; i < a.length; ++i) { 75 var p = a[i].split('='); 76 if (p.length != 2) continue; 77 b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " ")); 78 } 79 return b; 80 })(window.location.search.substr(1).split('&')) 81})(jQuery); 82 83function submit_request(path) { 84 85 86 var guest = $('#quoteBuilderForm\\:createAccount\\:guest'); 87 88 if (guest.is(':checked') & guest.is(':hidden') == false) { 89 90 var nameFirst = $('#quoteBuilderForm\\:createAccount\\:nameFirst').val().trim(); 91 var nameLast = $('#quoteBuilderForm\\:createAccount\\:nameLast').val().trim(); 92 var organization = $('#quoteBuilderForm\\:createAccount\\:company').val().trim(); 93 var positionTitle = $('#quoteBuilderForm\\:createAccount\\:position').val().trim(); 94 var address1 = $('#quoteBuilderForm\\:createAccount\\:address1').val().trim(); 95 var address2 = $('#quoteBuilderForm\\:createAccount\\:address2').val().trim(); 96 var city = $('#quoteBuilderForm\\:createAccount\\:city').val().trim(); 97 var state = $('#quoteBuilderForm\\:createAccount\\:state').val().trim(); 98 var zip = $('#quoteBuilderForm\\:createAccount\\:zip').val().trim(); 99 var country = $('#quoteBuilderForm\\:createAccount\\:country').val().trim(); 100 var phone = $('#quoteBuilderForm\\:createAccount\\:phone').val().trim(); 101 var email = $('#quoteBuilderForm\\:createAccount\\:email').val().trim(); 102 } 103 else { 104 105 var nameFirst = $("#quoteBuilderForm\\:nameFirst").val().trim(); 106 var nameLast = $("#quoteBuilderForm\\:nameLast").val().trim(); 107 var organization = $("#quoteBuilderForm\\:company").val().trim(); 108 var positionTitle = $('#quoteBuilderForm\\:position').val().trim(); 109 var address1 = $('#quoteBuilderForm\\:address1').val().trim(); 110 var address2 = $('#quoteBuilderForm\\:address2').val().trim(); 111 var city = $('#quoteBuilderForm\\:city').val().trim(); 112 var state = $('#quoteBuilderForm\\:state').val().trim(); 113 var country = $('#quoteBuilderForm\\:country').val().trim(); 114 var zip = $('#quoteBuilderForm\\:zip').val().trim(); 115 var phone = $('#quoteBuilderForm\\:phone').val().trim(); 116 var email = $('#quoteBuilderForm\\:email').val().trim(); 117 } 118 var animal = $("#quoteBuilderForm\\:animal").val().trim(); 119 var quality = $("#quoteBuilderForm\\:quality").val().trim(); 120 var projectLengthFrom = $("#quoteBuilderForm\\:projectLengthFrom").val().trim(); 121 var frequencyRangeFrom = $("#quoteBuilderForm\\:requencyRangeFrom").val().trim(); 122 var frequencyRangeTo = $("#quoteBuilderForm\\:requencyRangeTo").val().trim(); 123 var additionalInformation = $("#quoteBuilderForm\\:additionalInformation").val().trim(); 124 var needLetter = $('#quoteBuilderForm\\:needLetter').is(':checked'); 125 var updateInfo = $('#quoteBuilderForm\\:updateInfo').is(':checked'); 126 var needBy = $("#quoteBuilderForm\\:NeedBy").val().trim(); 127 128 $.ajax({
129 async: false, 130 type: "POST", 131 datetype: "text/xml", 132 url: path + "Servidor.ashx", 133 data: "consulta=submit_request&firstName=" + nameFirst + "&lastName=" + nameLast + "&organization=" + organization + "&positionTitle=" + positionTitle + 134 "&address1=" + address1 + "&address2=" + address2 + "&city=" + city + "&state=" + state + "&zip=" + zip + "&country=" + country + "&phone=" + phone + 135 "&animal=" + animal + "&quality=" + quality + "&projectLengthFrom=" + projectLengthFrom + "&frequencyRangeFrom=" + frequencyRangeFrom + "&frequencyRangeTo=" + 136 frequencyRangeTo + "&additionalInformation=" + additionalInformation + "&needLetter=" + needLetter + "&updateInfo=" + updateInfo + "&email=" + email + "&needBy=" + needBy, 137 success: function (datos) { 138 139 if ($(datos).find('NewDataSet').length > 0); 140 $(datos).find('Table1').each(function () { 141 var verificate = $(this).find('verificate').text(); 142 143 if (verificate == 'true') { 144 document.location = path + "quote-builder/quote-builder-success.html"; 145 } 146 else { 147 alert("Please check your quote."); 148 } 149 }); 150 }, 151 complete: function (objeto, exito) { 152 153 if (exito != "success") { 154 alert("Error - this action was not completed."); 155 } 156 } 157 }); 158} 159 160function _IsBot(path) { 161 162 var org = $("#formContact\\:company").val().trim(); 163 var email = $("#formContact\\:email").val().trim(); 164 var phone = $("#formContact\\:phone").val().trim(); 165 var message = $("#formContact\\:comments").val().trim(); 166 var honey = $("#formContact\\:Website").val().trim(); 167 $.ajax({
168 async: false, 169 type: "POST", 170 datetype: "text/xml", 171 url: path + "Servidor.ashx", 172 data: "consulta=isbot&menssage=" + message + "&email=" + email + "&phone=" + phone + "&org=" + org , 173 success: function (datos) { 174 alert("aqui entro"); 175 //document.location = "contact-success.html"; 176 //document.location.href = "contact-success.html"; 177 } 178 179 }); 180} 181function load_filtergpssatellite_species(path) { 182 183 $.ajax({ 184 async: false, 185 type: "POST", 186 datetype: "text/xml", 187 url: path + "Servidor.ashx", 188 data: "consulta=load_filtergpssatellite_species", 189 success: function (datos) { 190 var i = 0; 191 var MatchingProducts = 0; 192 if ($(datos).find('NewDataSet').length > 0) { 193 $(datos).find('Table').each(function () { 194 i = i + 1; 195 var SpeciesType = $(this).find('SpeciesType').text(); 196 var Count = $(this).find('Count').text(); 197 load_FilterSpecies_html(i, SpeciesType, Count); 198 MatchingProducts = MatchingProducts + parseInt(Count); 199 }); 200 } 201 $('.match-quantity').empty().prepend('[' + MatchingProducts + '] Matching Products') 202 $('#jumptoresults').val('Jump to Results (' + MatchingProducts + ')'); 203 }, 204 complete: function (objeto, exito) { 205 206 if (exito != "success") { 207 alert("Error - this action was not completed."); 208 } 209 } 210 }); 211} 212 213function load_filterspecies(path) { 214 215 $.ajax({
216 async: false, 217 type: "POST", 218 datetype: "text/xml", 219 url: path + "Servidor.ashx", 220 data: "consulta=load_filterspecies", 221 success: function (datos) { 222 var i = 0; 223 var MatchingProducts = 0; 224 if ($(datos).find('NewDataSet').length > 0) { 225 $(datos).find('Table').each(function () { 226 i = i + 1; 227 var SpeciesType = $(this).find('SpeciesType').text(); 228 var Count = $(this).find('Count').text(); 229 load_FilterSpecies_html(i, SpeciesType, Count); 230 MatchingProducts = MatchingProducts + parseInt(Count); 231 }); 232 } 233 $('.match-quantity').empty().prepend('[' + MatchingProducts + '] Matching Products') 234 $('#jumptoresults').val('Jump to Results (' + MatchingProducts + ')'); 235 }, 236 complete: function (objeto, exito) { 237 238 if (exito != "success") { 239 alert("Error - this action was not completed."); 240 } 241 } 242 }); 243} 244 245function load_FilterSpecies_html(number, SpeciesType, Count) { 246 var div = '<div class="fieldArea htmlRadio">' 247 div += ' <input type="radio" id="SpeciesType:' + number + '" name="SpeciesType" value="' + SpeciesType + '"/>' 248 // if (Count == '') 249 // div += ' <label for="species:' + number + '">' + SpeciesType + '</label>' 250 // else 251 div += ' <label for="SpeciesType:' + number + '">' + SpeciesType + ' <span>(' + Count + ')</span>' + '</label>' 252 div += ' </div>'; 253 254 $("#filter_species").prepend(div); 255 256} 257 258function load_filterreceivers_channels(path) { 259 260 $.ajax({
261 async: false, 262 type: "POST", 263 datetype: "text/xml", 264 url: path + "Servidor.ashx", 265 data: "consulta=load_filterreceivers_channels", 266 success: function (datos) { 267 var MatchingProducts = 0; 268 if ($(datos).find('NewDataSet').length > 0) { 269 $(datos).find('Table').each(function () { 270 var under50 = $(this).find('under50').text(); 271 var over50 = $(this).find('over50').text(); 272 $('#channels\\:under50\\:count').empty().prepend('(' + under50 + ')'); 273 $('#channels\\:over50\\:count').empty().prepend('(' + over50 + ')'); 274 MatchingProducts = $(this).find('count').text(); 275 }); 276 } 277 $('.match-quantity').empty().prepend('[' + MatchingProducts + '] Matching Products') 278 $('#jumptoresults').val('Jump to Results (' + MatchingProducts + ')'); 279 }, 280 complete: function (objeto, exito) { 281 282 if (exito != "success") { 283 alert("Error - this action was not completed."); 284 } 285 } 286 }); 287} 288 289function load_filterantenna_directionality(path) { 290 291 $.ajax({
292 async: false, 293 type: "POST", 294 datetype: "text/xml", 295 url: path + "Servidor.ashx", 296 data: "consulta=load_filterantenna_directionality", 297 success: function (datos) { 298 var MatchingProducts = 0; 299 $('#directionality\\:directional\\:count').empty().prepend('(0)'); 300 $('#directionality\\:omnidirectional\\:count').empty().prepend('(0)'); 301 if ($(datos).find('NewDataSet').length > 0) { 302 $(datos).find('Table').each(function () { 303 var ADirectional = $(this).find('ADirectional').text(); 304 var count = $(this).find('count').text(); 305 if (ADirectional == 'true') { 306 $('#directionality\\:directional\\:count').empty().prepend('(' + count + ')'); 307 } 308 if (ADirectional == 'false') { 309 $('#directionality\\:omnidirectional\\:count').empty().prepend('(' + count + ')'); 310 } 311 MatchingProducts = MatchingProducts + parseInt(count); 312 }); 313 } 314 $('.match-quantity').empty().prepend('[' + MatchingProducts + '] Matching Products') 315 $('#jumptoresults').val('Jump to Results (' + MatchingProducts + ')'); 316 }, 317 complete: function (objeto, exito) { 318 319 if (exito != "success") { 320 alert("Error - this action was not completed."); 321 } 322 } 323 }); 324} 325 326function check_invoice(path, option, number,token) { 327 var amount = -3; 328 var result= 0; 329 $.ajax({ 330 async: false, 331 type: "POST", 332 datetype: "text/xml", 333 url: path + "Servidor.ashx", 334 data: "consulta=check_invoice&number=" + number + "&option=" + option + "&token=" + token, 335 success: function (datos) { 336 //var amount = -3; 337 //var name = " "; 338 if ($(datos).find('Table').length > 0) { 339 $(datos).find('Table').each(function () { 340 var count = parseFloat($(this).find('c').text()); 341 var name = $(this).find('name').text(); 342 amount = parseFloat($(this).find('amount').text()) ; 343 344 if (amount == -1) { 345 if (name == "no") { 346 if (count > 0) { 347 //el numero de job esta bien, el error es token 348 result= - 3; 349 } else { 350 //el numero de job esta equivocado(-1) 351 result= -1; 352 } 353 } else { 354 //existe, pero esta pagado (-2) 355 result= -2; 356 } 357 } else { ////existe (valor x) 358 result= amount; 359 } 360 361 362 }); 363 //result = amount; 364 } 365 else { 366 result = -4; 367 } 368 }, 369 complete: function (objeto, exito) { 370 371 if (exito != "success") { 372 alert("Error - this action was not completed."); 373 } 374 } 375 }); 376 return result; 377} 378 379function check_invoicetojob(path, option, number,token) { 380 var invoicetoJob = 0; 381 var result = 0; 382 var amount =-3; 383 $.ajax({
384 async: false, 385 type: "POST", 386 datetype: "text/xml", 387 url: path + "Servidor.ashx", 388 data: "consulta=check_invoice&number=" + number + "&option=" + option + "&token=" + token, 389 success: function (datos) { 390 //var invoicetoJob = 0; 391 if ($(datos).find('Table').length > 0) { 392 $(datos).find('Table').each(function () { 393 invoicetoJob = parseFloat($(this).find('invoicetoJob').text()); 394 var count = parseFloat($(this).find('c').text()); 395 var name = $(this).find('name').text(); 396 amount = parseFloat($(this).find('amount').text()); 397 398 if (token == "") { 399 if (invoicetoJob > 0) { 400 ///ya tiene invoice, existe 401 result = -5; 402 403 } else { 404 /// no existe el job ///pero puede ser porque ya esta pagado o por que no existe 405 if (invoicetoJob == -1) { 406 if (name == "no") { 407 ///no existe 408 result = -1; 409 if (count > 1) { 410 result = -4; 411 } 412 } else { 413 ///existe, pero esta pagado (-2) 414 result = -2; 415 } 416 } else { 417 //////existe 418 result = amount; 419 } 420 421 } 422 } else { 423 if (invoicetoJob > 0) { 424 //// ya tiene invoice 425 result =-5 426 427 } else { 428 //no lo encuentra o no existe con ese token; ya esta pagado 429 if (invoicetoJob == -1) { 430 if (name == "no") { 431 if (count > 0) { 432 //el numero de job esta bien, el error es token 433 if (count == 1) { 434 result = - 3; 435 } 436 else { 437 ///error de mas de 1 job# 438 result = -4; 439 } 440 441 } else { 442 ///el numero de job esta equivocado(-1) 443 result = -1; 444 } 445 } else { 446 ///existe, pero esta pagado (-2) 447 result = -2; 448 } 449 } else { 450 result = amount; 451 } 452 } 453 } 454 455 }); 456 //result = invoicetoJob; 457 458 }else{ 459 //error en Table ajax 460 result = -4; 461 } 462 463 }, 464 complete: function (objeto, exito) { 465 466 if (exito != "success") { 467 alert("Error - this action was not completed."); 468 } 469 } 470 }); 471 return result; 472} 473 474function GetInformationPayInvoice(path, option, number,token) { 475 var result="ok"; 476 if(token == ""){ 477 $.ajax({ 478 async: false, 479 type: "POST", 480 datetype: "text/xml", 481 url: path + "Servidor.ashx", 482 data: "consulta=getinformationpayinvoice&number=" + number + "&option=" + option, 483 success: function (datos) { 484 var amount = 0; 485 if ($(datos).find('Table').length > 0) { 486 $(datos).find('Table').each(function () { 487 amount = $(this).find('Amount').text(); 488 amount = parseFloat(amount).toFixed(2); 489 $('#formInvoice\\:details\\:amount').empty().prepend('For The Amount of: $' + amount + ''); 490 $('#formInvoice\\:details\\:nameFull').val(""); 491 $('#formInvoice\\:details\\:address1').val(""); 492 $('#formInvoice\\:details\\:address2').val(""); 493 $('#formInvoice\\:details\\:city').val(""); 494 $('#formInvoice\\:details\\:state').val(""); 495 $('#formInvoice\\:details\\:zip').val(""); 496 $('#formInvoice\\:details\\:country').val(""); 497 $('#formInvoice\\:details\\:email').val(""); 498 $('#formInvoice\\:details\\:phone').val(""); 499 500 }); 501 } 502 }, 503 complete: function (objeto, exito) { 504 505 if (exito != "success") { 506 alert("Error - this action was not completed."); 507 } 508 } 509 }); 510 }else{ 511 $.ajax({ 512 async: false, 513 type: "POST", 514 datetype: "text/xml", 515 url: path + "Servidor.ashx", 516 data: "consulta=getinformationpayinvoice&number=" + number + "&option=" + option, 517 success: function (datos) { 518 var amount = 0; 519 if ($(datos).find('Table').length > 0) { 520 $(datos).find('Table').each(function () { 521 amount = $(this).find('Amount').text(); 522 amount = parseFloat(amount).toFixed(2); 523 $('#formInvoice\\:details\\:amount').empty().prepend('For The Amount of: $' + amount + ''); 524 $('#formInvoice\\:details\\:nameFull').val($(this).find('Name').text()); 525 $('#formInvoice\\:details\\:address1').val($(this).find('Address1').text()); 526 $('#formInvoice\\:details\\:address2').val($(this).find('Address2').text()); 527 $('#formInvoice\\:details\\:city').val($(this).find('City').text()); 528 $('#formInvoice\\:details\\:state').val($(this).find('State').text()); 529 $('#formInvoice\\:details\\:zip').val($(this).find('Zip').text()); 530 $('#formInvoice\\:details\\:country').val($(this).find('Country').text()); 531 $('#formInvoice\\:details\\:email').val($(this).find('Email').text()); 532 $('#formInvoice\\:details\\:phone').val($(this).find('Phone').text()); 533 534 }); 535 } 536 }, 537 complete: function (objeto, exito) { 538 539 if (exito != "success") { 540 alert("Error - this action was not completed."); 541 } 542 } 543 }); 544 545 } 546 547 return result; 548} 549 550function load_pay(path) { 551 552 $.ajax({
553 async: false, 554 type: "POST", 555 datetype: "text/xml", 556 url: path + "Servidor.ashx", 557 data: "consulta=load_pay", 558 success: function (datos) { 559 560 if ($(datos).find('Table').length > 0) { 561 $(datos).find('Table').each(function () { 562 $('#transactionnumber').replaceWith('<dd id="transactionnumber">' + $(this).find('transactionnumber').text() + '</dd>'); 563 $("#amount").replaceWith('<dd id="amount">$' + $(this).find('Amount').text() + '</dd>'); 564 $("#date").replaceWith('<dd id="date">' + $(this).find('Date').text() + '</dd>'); 565 $("#name").replaceWith('<dd id="name">' + $(this).find('Name').text() + '</dd>'); 566 $("#cc").replaceWith('<dd id="cc">' + $(this).find('cc').text() + '</dd>'); 567 $("#messageLoad").attr('hidden', 'hidden'); 568 if ($(this).find('TypePay').text() == 'invoice') 569 $("#messageInvoice").removeAttr('hidden'); 570 else 571 $("#messageJob").removeAttr('hidden'); 572 }); 573 } 574 else { 575 $('.columnM').attr('hidden', 'hidden'); 576 } 577 }, 578 complete: function (objeto, exito) { 579 580 if (exito != "success") { 581 alert("Error - this action was not completed."); 582 } 583 } 584 }); 585} 586function cancel_payinvoice(path) { 587 $.ajax({
588 async: false, 589 type: "POST", 590 datetype: "text/xml", 591 url: path + "Servidor.ashx", 592 data: "consulta=cancel_payinvoice" 593 }); 594} 595 596function PayInvoice(path) { 597 $('#formInvoice\\: submit ').attr('disabled','disabled'); 598 var namefull = $('#formInvoice\\:details\\:nameFull'); 599 var address1 = $('#formInvoice\\:details\\:address1'); 600 var address2 = $('#formInvoice\\:details\\:address2'); 601 var city = $('#formInvoice\\:details\\:city'); 602 var state = $('#formInvoice\\:details\\:state'); 603 var zip = $('#formInvoice\\:details\\:zip'); 604 var country = $('#formInvoice\\:details\\:country'); 605 var email = $('#formInvoice\\:details\\:email'); 606 var phone = $('#formInvoice\\:details\\:phone'); 607 var cc = $('#formInvoice\\:details\\:cc').val().trim(); 608 var mm = $('#formInvoice\\:details\\:mmyy\\:mm'); 609 var yy = $('#formInvoice\\:details\\:mmyy\\:yy'); 610 611 $.ajax({ 612 async: false, 613 type: "POST", 614 datetype: "text/xml", 615 url: path + "Servidor.ashx", 616 data: "consulta=payinvoice&cc=" + cc + "&exp=" + mm.val().trim() + yy.val().trim() + "&namefull=" + namefull.val().trim() + "&address1=" + address1.val().trim() 617 + "&address2=" + address2.val().trim() + "&city=" + city.val().trim() + "&state=" + state.val().trim() + "&zip=" + zip.val().trim() + "&country=" + country.val().trim() 618 + "&phone=" + phone.val().trim() + "&email=" + email.val().trim(), 619 success: function (datos) { 620 if ($(datos).find('Table').length > 0) { 621 var processend = "vacio"; 622 var failedend = ""; 623 var error = ""; 624 $('#formInvoice\\:details\\:cc\\:error\\:valid').attr('hidden', 'hidden'); 625 $('#formInvoice\\:text\\:details\\:cc').removeClass('containsError'); 626 $('#formInvoice\\:details\\:mmyy\\:error\\:valid').attr('hidden', 'hidden'); 627 $('#formInvoice\\:text\\:details\\:mmyy').removeClass('containsError'); 628 $('#formInvoice\\:error\\:failed').attr('hidden', 'hidden'); 629 $('#formInvoice\\:error\\:catch').attr('hidden', 'hidden'); 630 631 $(datos).find('Table').each(function () { 632 var success = $(this).find('success').text(); 633 failedend = $(this).find('failed').text(); 634 processend = $(this).find('processsendtopaytrace').text(); 635 var responsemessage = $(this).find('responsemessage').text(); 636 637 if (success == "successfully") { 638 if (processend == "unsuccessfully") { //finalizo el proceso con error 639 $('#formInvoice\\:error\\:failed').text(responsemessage); 640 $('#formInvoice\\:error\\:failed').removeAttr('hidden'); 641 } 642 else if (processend == "successfully") { //finalizo el proceso bien 643 document.location = "pay-success.html"; 644 } 645 else { // no entro al try 646 if (failedend != "") { // catch 647 $('#formInvoice\\:error\\:failed').text(failedend); 648 $('#formInvoice\\:error\\:failed').removeAttr('hidden'); 649 } else { //success para job 650 document.location = "pay-success.html"; 651 } 652 } 653 } 654 655 else if (success == "no") { /////errores 656 var cc = $(this).find('cc').text(); 657 var exp = $(this).find('exp').text(); 658 error = $(this).find('error').text(); 659 var invalid = $(this).find('invalid').text(); 660 if (cc == "cc") { 661 $('#formInvoice\\:details\\:cc\\:error\\:valid').removeAttr('hidden'); 662 $('#formInvoice\\:text\\:details\\:cc').addClass('containsError'); 663 } else if (cc == "bank") { 664 var bank = "Weâre sorry, this transaction has been Declined by the issuer. Please contact your bank for assistance."; 665 $('#formInvoice\\:error\\:failed').text(bank); 666 $('#formInvoice\\:error\\:failed').removeAttr('hidden'); 667 } else if (cc == "paid") { 668 var paid = "Weâre sorry, this transaction has been Declined by the issuer because the invoice was already paid."; 669 $('#formInvoice\\:error\\:failed').text(paid); 670 $('#formInvoice\\:error\\:failed').removeAttr('hidden'); 671 } else if (exp == "exp") { 672 $('#formInvoice\\:details\\:mmyy\\:error\\:valid').removeAttr('hidden'); 673 $('#formInvoice\\:text\\:details\\:mmyy').addClass('containsError'); 674 } else if (error == "block") { 675 var blocked = "This card has reached the limit of 4 unsuccessful transaction attempts in a 24 hour period. Please contact your bank for assistance."; 676 $('#formInvoice\\:error\\:failed').text(blocked); 677 $('#formInvoice\\:error\\:failed').removeAttr('hidden'); 678 } else if (invalid == "email") { 679 var email = "This card has reached the limit of 4 unsuccessful transaction attempts in a 24 hour period. Please contact your bank for assistance."; 680 $('#formInvoice\\:error\\:failed').text(email); 681 $('#formInvoice\\:error\\:failed').removeAttr('hidden'); 682 } 683 else if (invalid=="phone") { 684 var phone = "This card has reached the limit of 4 unsuccessful transaction attempts in a 24 hour period. Please contact your bank for assistance."; 685 $('#formInvoice\\:error\\:failed').text(phone); 686 $('#formInvoice\\:error\\:failed').removeAttr('hidden'); 687 }else 688 { 689 var unknown = "Weâre sorry, this transaction has been Declined by the issuer. Please contact your bank for assistance."; 690 $('#formInvoice\\:error\\:failed').text(unknown);
691 $('#formInvoice\\:error\\:failed').removeAttr('hidden'); 692 } 693 694 } 695 else if (success == "timeout") { 696 $('#formInvoice\\:error\\:catch').text("The operation has timed out"); //timeout// 697 $('#formInvoice\\:error\\:catch').removeAttr('hidden'); 698 } else { 699 $('#formInvoice\\:error\\:catch').text(success); //exception por la que no entro al try// 700 $('#formInvoice\\:error\\:catch').removeAttr('hidden'); 701 } 702 }); 703 } 704 }, 705 complete: function (objeto, exito) { 706 707 if (exito != "success") { 708 alert("Error - this action was not completed."); 709 } 710 } 711 }); 712} 713function login(path, email, password) { 714 $.ajax({ 715 async: false, 716 type: "POST", 717 datetype: "text/xml", 718 url: path + "Servidor.ashx", 719 data: "consulta=login&email=" + email + "&password=" + password, 720 success: function (datos) { 721 722 if ($(datos).find('NewDataSet').length > 0); 723 $(datos).find('Table1').each(function () { 724 var login = $(this).find('login').text(); 725 726 if (login == 'true') { 727 document.location = "customer-dashboard.html"; 728 } 729 else { 730 if(email == 'doble'){ 731 document.location = "login.html?id=0002"; 732 }else{ 733 document.location = "login.html?id=0001"; 734 } 735 } 736 }); 737 }, 738 complete: function (objeto, exito) { 739 740 if (exito != "success") { 741 alert("Error - this action was not completed."); 742 } 743 } 744 }); 745} 746 747//function messagereorder(path) { 748// var name = $("#formReorder\\:name").val().trim(); 749// var org = $("#formReorder\\:company").val().trim(); 750// var email = $("#formReorder\\:email").val().trim(); 751// var phone = $("#formReorder\\:phone").val().trim(); 752// var region = $("#formReorder\\:region").val().trim(); 753// var messsage = $("#formReorder\\:comments").val().trim(); 754// alert(region); 755// $.ajax({
756// async: false, 757// type: "POST", 758// datetype: "text/xml", 759// url: path + "Servidor.ashx", 760// data: "consulta=messagereorder&name=" + name + "&org=" + org + "&email=" + email + "&phone=" + phone + "®ion=" + region + "&message=" + message, 761// success: function (datos) { 762// alert('datos'); 763// if ($(datos).find('NewDataSet').length > 0); 764// }, 765// complete: function (objeto, exito) { 766// if (exito != "success") { 767// alert("Error acción no realizada."); 768// } 769// } 770// }); 771// return result; 772//} 773 774 775function messagereorder(path) { 776 var name = $("#formReorder\\:name").val().trim(); 777 var org = $("#formReorder\\:company").val().trim(); 778 var email = $("#formReorder\\:email").val().trim(); 779 var phone = $("#formReorder\\:phone").val().trim(); 780 var region = $("#formReorder\\:region").val().trim(); 781 var message = $("#formReorder\\:comments").val().trim(); 782 783 $.ajax({
784 async: false, 785 type: "POST", 786 datetype: "text/xml", 787 url: path + "Servidor.ashx", 788 data: "consulta=messagereorder&name=" + name + "&org=" + org + "&email=" + email + "&phone=" + phone + "®ion=" + region + "&message=" + message 789 }); 790} 791 792 793function messagecontact(path) { 794 795 var name = $("#formContact\\:name").val().trim(); 796 var org = $("#formContact\\:company").val().trim(); 797 var email = $("#formContact\\:email").val().trim(); 798 var phone = $("#formContact\\:phone").val().trim(); 799 var region = $("#formContact\\:region").val().trim(); 800 var message = $("#formContact\\:comments").val().trim(); 801 $.ajax({ 802 async: false, 803 type: "POST", 804 datetype: "text/xml", 805 url: path + "Servidor.ashx", 806 data: "consulta=messagecontact&name=" + name + "&org=" + org + "&email=" + email + "&phone=" + phone + "®ion=" + region + "&message=" + message , 807 success: function (datos) { 808 809 //document.location = "contact-success.html"; 810 //document.location.href = "contact-success.html"; 811 } 812 813 }); 814} 815function IntoBitacora(path,notes,page) { 816 $.ajax({
817 async: false, 818 type: "POST", 819 datetype: "tex/xml", 820 url: path + "Servidor.ashx", 821 data: "consulta=setBitacora¬es=" + notes + "&page=" + page , 822 success: function (datos) { 823 if ($(datos).find('NewDataSet').length > 0) { 824 $(datos).find('Table1').each(function () { 825 var ok = $(this).find('ok').text(); 826 }); 827 } 828 }, 829 complete: function (objeto, exito) { 830 if (exito != "success") { 831 alert("Error - this action was not recognized."); 832 } 833 } 834 }); 835} 836 837function forgot_login(path, email) { 838 839 $.ajax({ 840 async: false, 841 type: "POST", 842 datetype: "text/xml", 843 url: path + "Servidor.ashx", 844 data: "consulta=forgot_login&email=" + email, 845 success: function (datos) { 846 if ($(datos).find('NewDataSet').length > 0) { 847 $(datos).find('Table1').each(function () { 848 849 var mail =$(this).find('email').text(); 850 851 if (mail == 'false') { 852 alert("You do not have a web account or your account is not activated.Please contact ATS for assistance."); 853 } else { 854 $('#forgotLoginForm').attr('hidden', 'hidden'); 855 $('#codeForm').removeAttr('hidden'); 856 } 857 //$('#codeForm message').empty().prepend("We've seeeent an e-mail with a code to reset your password to " + email + ". You should receive it in a few minutes."); 858 }); 859 } 860 861 }, 862 complete: function (objeto, exito) { 863 864 if (exito != "success") { 865 alert("Error - this action was not recognized."); 866 } 867 } 868 }); 869} 870 871function verification_RegistrationKey(path, registrationKey) { 872 $.ajax({
873 async: false, 874 type: "POST", 875 datetype: "text/xml", 876 url: path + "Servidor.ashx", 877 data: "consulta=verification_RegistrationKey®istrationKey=" + registrationKey, 878 success: function (datos) { 879 880 if ($(datos).find('NewDataSet').length > 0) { 881 $(datos).find('tblcustomer').each(function () { 882 var newcustomer = $(this).find('newcustomer').text(); 883 if (newcustomer == 'true') { 884 document.location = "../login.html"; 885 } else { 886 document.location = "../login/regis-key-information.html"; 887 } 888 }); 889 } 890 }, 891 complete: function (objeto, exito) { 892 if (exito != "success") { 893 alert("Error - this action was not completed."); 894 } 895 } 896 }); 897 898} 899 900function verification_code(path, code) { 901 902 $.ajax({ 903 async: false, 904 type: "POST", 905 datetype: "text/xml", 906 url: path + "Servidor.ashx", 907 data: "consulta=verification_code&code=" + code, 908 success: function (datos) { 909 if ($(datos).find('NewDataSet').length > 0); 910 911 $(datos).find('Table1').each(function () { 912 var verif = $(this).find('verificate').text(); 913 if (verif == "true") { 914 document.location = "../login/reset-password.html?" + code; 915 } else { 916 document.location = "../login/verif-code-information.html"; 917 //alert('Your Verification code was expired,Please try again'); 918 //document.location = "../login/forgot-password.html"; 919 } 920 }); 921 922 }, 923 complete: function (objeto, exito) { 924 925 if (exito != "success") { 926 alert("Error - this action was not completed."); 927 } 928 } 929 }); 930} 931 932 933function reset_password(path, code, email, password) { 934 935 $.ajax({
936 async: false, 937 type: "POST", 938 datetype: "text/xml", 939 url: path + "Servidor.ashx", 940 data: "consulta=reset_password&code=" + code + "&password=" + password, 941 success: function (datos) { 942 if ($(datos).find('NewDataSet').length > 0) { 943 $(datos).find('Table1').each(function () { 944 var verif = $(this).find('verificate').text(); 945 if (verif == "true") { 946 document.location = "../login.html"; 947 } else { 948 alert('Your code has been used, Please Try again.'); 949 document.location = "../login/forgot-password.html"; 950 } 951 }); 952 } 953 }, 954 //complete: function (objeto, exito) { 955 956 // if (exito != "Success") { 957 // alert("Error - this action was not completed."); 958 // } 959 //} 960 }); 961} 962function is_new_customer(path, email) { 963 var newcustomer = false; 964 $.ajax({
965 async: false, 966 type: "POST", 967 datetype: "text/xml", 968 url: path + "Servidor.ashx", 969 data: "consulta=is_new_customer&email=" + email, 970 success: function (datos) { 971 if ($(datos).find('NewDataSet').length > 0); 972 $(datos).find('tblcustomer').each(function () { 973 newcustomer = $(this).find('newcustomer').text(); 974 var email = $(this).find('email').text(); 975 }); 976 }, 977 complete: function (objeto, exito) { 978 979 if (exito != "success") { 980 alert("Error - this action was not completed."); 981 } 982 983 } 984 985 }); 986 return newcustomer; 987} 988 989function register_account(path, firstName, lastName, organization, positionTitle, email, password, address1, address2, city, state, zip, country, phone) { 990 991 //The e-mail address you entered matches an existing atstrack.com account. To join ATSTrack using this account, please sign in 992 993 $.ajax({ 994 async: false, 995 type: "POST", 996 datetype: "text/xml", 997 url: path + "Servidor.ashx", 998 data: "consulta=register_account&firstName=" + firstName + "&lastName=" + lastName + 999 "&organization=" + organization + "&positionTitle=" + positionTitle + 1000 "&email=" + email + "&password=" + password + "&address1=" + address1 + 1001 "&address2=" + address2 + "&city=" + city + "&state=" + state + "&zip=" + zip + 1002 "&country=" + country + "&phone=" + phone, 1003 success: function (datos) { 1004 if ($(datos).find('NewDataSet').length > 0) { 1005 $(datos).find('tblcustomer').each(function () { 1006 var newcustomer = $(this).find('newcustomer').text(); 1007 //var email = $(this).find('email').text(); 1008 if (newcustomer == 'true') { 1009 //alert('we are going to send you an email, please confirm it to finish the registration'); 1010 //document.location = "../index.html"; 1011 document.location = "../login/registerInformation.html"; 1012 1013 } 1014 else { 1015 1016 document.location = "../login.html?id=0000"; 1017 } 1018 }); 1019 } 1020 }, 1021 complete: function (objeto, exito) { 1022 1023 if (exito != "success") { 1024 alert("Error - this action was not completed."); 1025 } 1026 } 1027 }); 1028 1029} 1030 1031function update_account(path, firstName, lastName, organization, positionTitle, email, address1, address2, city, state, zip, country, phone) { 1032 1033 //The e-mail address you entered matches an existing atstrack.com account. To join ATSTrack using this account, please sign in. 1034 var error = false; 1035 $.ajax({
1036 async: false, 1037 type: "POST", 1038 datetype: "text/xml", 1039 url: path + "Servidor.ashx", 1040 data: "consulta=update_account&firstName=" + firstName + "&lastName=" + lastName + 1041 "&organization=" + organization + "&positionTitle=" + positionTitle + 1042 "&email=" + email + "&address1=" + address1 + 1043 "&address2=" + address2 + "&city=" + city + "&state=" + state + "&zip=" + zip + 1044 "&country=" + country + "&phone=" + phone, 1045 success: function (datos) { 1046 1047 if ($(datos).find('NewDataSet').length > 0); 1048 $(datos).find('tblupdate').each(function () { 1049 var log = '<strong>Returning customer?'; 1050 log += ' <i class="fa fa-caret-right"></i>'; 1051 log += ' </strong>'; 1052 log += ' <a href="' + path + 'login/logout.html">' + $.cookie('firstname') + '</a>'; 1053 $('.upper-returning').empty().prepend(log); 1054 1055 }); 1056 }, 1057 complete: function (objeto, exito) { 1058 1059 if (exito != "success") { 1060 alert("Error - this action was not completed."); 1061 error = true 1062 } 1063 } 1064 }); 1065 return error; 1066} 1067//function close_cookies() { 1068// $.removeCookie('email'); 1069// $.removeCookie('firstname'); 1070//} 1071//function setCookie(key, value) { 1072// var expires = new Date(); 1073// expires.setTime(expires.getTime() + 31536000000); //1 year 1074// document.cookie = key + '=' + value + ';expires=' + expires.toUTCString(); 1075//} 1076 1077//function getCookie(key) { 1078// var keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)'); 1079// alert('keyValue : ' + keyValue); 1080// return keyValue ? keyValue[2] : null; 1081//} 1082 1083 1084 1085//function SetCookie(cookieName, cookieValue, nDays) { 1086// var today = new Date(); 1087// var expire = new Date(); 1088// if (nDays == null || nDays == 0) nDays = 1; 1089// expire.setTime(today.getTime() + 3600000 * 24 * nDays); 1090// document.cookie = cookieName + "=" + escape(cookieValue) 1091// + ";expires=" + expire.toGMTString(); 1092//} 1093 1094//function ReadCookie(cookieName) { 1095// var theCookie = " " + document.cookie; 1096// var ind = theCookie.indexOf(" " + cookieName + "="); 1097// if (ind == -1) ind = theCookie.indexOf(";" + cookieName + "="); 1098// if (ind == -1 || cookieName == "") return ""; 1099// var ind1 = theCookie.indexOf(";", ind + 1); 1100// if (ind1 == -1) ind1 = theCookie.length; 1101// return unescape(theCookie.substring(ind + cookieName.length + 2, ind1)); 1102//} 1103 1104//function createCookie(name, value, days) { 1105// if (days) { 1106// var date = new Date(); 1107// date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 1108// var expires = "; expires=" + date.toGMTString(); 1109// } 1110// else var expires = ""; 1111// var fixedName = '<%= Request["formName"] %>'; 1112// name = fixedName + name; 1113// alert('name : ' + name); 1114// document.cookie = name + "=" + value + expires + "; path=/"; 1115//} 1116 1117//function readCookie(name) { 1118// var nameEQ = name + "="; 1119// var ca = document.cookie.split(';'); 1120// for (var i = 0; i < ca.length; i++) { 1121// var c = ca[i]; 1122// while (c.charAt(0) == ' ') c = c.substring(1, c.length); 1123// if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); 1124// } 1125// return null; 1126//} 1127 1128//function eraseCookie(name) { 1129// createCookie(name, "", -1); 1130//} 1131 1132 1133function is_product_added(modelNumber, path, page) { 1134 $.ajax({
1135 async: false, 1136 type: "POST", 1137 datetype: "text/xml", 1138 url: path + "Servidor.ashx", 1139 data: "consulta=is_product_added&modelNumber=" + modelNumber, 1140 success: function (datos) { 1141 if ($(datos).find('table').length > 0) { 1142 $(datos).find('table').each(function () { 1143 1144 var ModelNum = $(this).find('ModelNum').text(); 1145 var ModelName = $(this).find('ModelName').text(); 1146 var added = $(this).find('added').text(); 1147 var ProductImage = $(this).find('ProductImage').text(); 1148 var URLPageProduct = $(this).find('URLPageProduct').text(); 1149 var ProductType = $(this).find('ProductType').text(); 1150 change_button_add(added, page); 1151 }); 1152 } 1153 1154 }, 1155 complete: function (objeto, exito) { 1156 1157 if (exito != "success") { 1158 alert("Error - this action was not completed."); 1159 } 1160 } 1161 }); 1162} 1163 1164function load_productrelated(pagetype, modelNumber, producttype, path, page) { 1165 $.ajax({
1166 async: false, 1167 type: "POST", 1168 datetype: "text/xml", 1169 url: path + "Servidor.ashx", 1170 data: "consulta=load_productrelated&pagetype=" + pagetype + "&modelNumber=" + modelNumber + "&producttype=" + producttype, 1171 success: function (datos) { 1172 var i = 0; 1173 if ($(datos).find('table').length > 0) { 1174 $(datos).find('table').each(function () { 1175 i = i + 1; 1176 var ModelNum = $(this).find('ModelNum').text(); 1177 var ModelName = $(this).find('ModelName').text(); 1178 var added = $(this).find('added').text(); 1179 var ProductImage = $(this).find('ProductImage').text(); 1180 var URLPageProduct = $(this).find('URLPageProduct').text(); 1181 var ProductType = $(this).find('ProductType').text(); 1182 load_item_product_related(ModelNum, ModelName, added, ProductImage, URLPageProduct, ProductType, path, page); 1183 }); 1184 } 1185 }, 1186 complete: function (objeto, exito) { 1187 if (exito != "success") { 1188 alert("Error - this action was not completed."); 1189 } 1190 } 1191 }); 1192} 1193 1194function load_antennasandaccessorie(pagetype, modelNumber, producttype, path, page) { 1195 $.ajax({
1196 async: false, 1197 type: "POST", 1198 datetype: "text/xml", 1199 url: path + "Servidor.ashx", 1200 data: "consulta=load_antennasandaccessorie&pagetype=" + pagetype + "&modelNumber=" + modelNumber + "&producttype=" + producttype, 1201 success: function (datos) { 1202 var i = 0; 1203 if ($(datos).find('table').length > 0) { 1204 $(datos).find('table').each(function () { 1205 i = i + 1; 1206 var ModelNum = $(this).find('ModelNum').text(); 1207 var ModelName = $(this).find('ModelName').text(); 1208 var added = $(this).find('added').text(); 1209 var ProductImage = $(this).find('ProductImage').text(); 1210 var URLPageProduct = $(this).find('URLPageProduct').text(); 1211 var ProductType = $(this).find('ProductType').text(); 1212 load_item_antenna_accessorie(ModelNum, ModelName, added, ProductImage, URLPageProduct, ProductType, path, page); 1213 }); 1214 } 1215 1216 }, 1217 complete: function (objeto, exito) { 1218 1219 if (exito != "success") { 1220 alert("Error - this action was not completed."); 1221 } 1222 } 1223 }); 1224} 1225 1226 1227function load_transmitter(pagetype, modelNumber, producttype, path, page) { 1228 $.ajax({
1229 async: false, 1230 type: "POST", 1231 datetype: "text/xml", 1232 url: path + "Servidor.ashx", 1233 data: "consulta=load_transmitter&pagetype=" + pagetype + "&modelNumber=" + modelNumber + "&producttype=" + producttype, 1234 success: function (datos) { 1235 var i = 0; 1236 if ($(datos).find('table').length > 0) { 1237 $(datos).find('table').each(function () { 1238 i = i + 1; 1239 var ModelNum = $(this).find('ModelNum').text(); 1240 var ModelName = $(this).find('ModelName').text(); 1241 var added = $(this).find('added').text(); 1242 var ProductImage = $(this).find('ProductImage').text(); 1243 var URLPageProduct = $(this).find('URLPageProduct').text(); 1244 var TSeries = $(this).find('TSeries').text(); 1245 load_item_transmitter(ModelNum, ModelName, added, ProductImage, URLPageProduct, TSeries, path, page); 1246 1247 }); 1248 } 1249 1250 }, 1251 complete: function (objeto, exito) { 1252 1253 if (exito != "success") { 1254 alert("Error - this action was not completed."); 1255 } 1256 // var div = '<div class="product unit">'; 1257 // div += ' <div class="image">'; 1258 // div += ' <img src="../assets/images/products/products_09-product-160x150.jpg" />'; 1259 // div += ' <span class="btn add size-s"><a href="aerial.aspx#toggleAdded">Add'; 1260 // div += ' to Quote</a></span> <span class="btn edit size-s"><a href="../quote-builder.html">Edit'; 1261 // div += ' your Quote</a></span>'; 1262 // div += ' </div>'; 1263 // div += ' <div class="info">'; 1264 // div += ' <a class="title" href="../tracking-products/antennas/product-antennas.html">A2400 Series</a>'; 1265 // div += ' <span>Attachment Type</span> <span class="link"><a href="../tracking-products/antennas/product-antennas.html">'; 1266 // div += ' Quick Info</a></span>'; 1267 // div += ' </div>'; 1268 // div += '</div>'; 1269 // $("#accessorie").prepend(div); 1270 } 1271 }); 1272} 1273 1274function load_receiver(pagetype, modelNumber, producttype, path, page) { 1275 $.ajax({
1276 async: false, 1277 type: "POST", 1278 datetype: "text/xml", 1279 url: path + "Servidor.ashx", 1280 data: "consulta=load_receiver&pagetype=" + pagetype + "&modelNumber=" + modelNumber + "&producttype=" + producttype, 1281 success: function (datos) { 1282 var i = 0; 1283 if ($(datos).find('table').length > 0) { 1284 $(datos).find('table').each(function () { 1285 i = i + 1; 1286 var ModelNum = $(this).find('ModelNum').text(); 1287 var ModelName = $(this).find('ModelName').text(); 1288 var added = $(this).find('added').text(); 1289 var ProductImage = $(this).find('ProductImage').text(); 1290 var URLPageProduct = $(this).find('URLPageProduct').text(); 1291 var ProductType = $(this).find('ProductType').text(); 1292 load_item_receiver(ModelNum, ModelName, added, ProductImage, URLPageProduct, ProductType, path, page); 1293 }); 1294 } 1295 1296 }, 1297 complete: function (objeto, exito) { 1298 1299 if (exito != "success") { 1300 alert("Error - this action was not completed."); 1301 } 1302 } 1303 }); 1304} 1305 1306function change_button_add(added, page) { 1307 1308 if (added == 'added') { 1309 $('#divadd').removeClass(); 1310 $('#divadd').addClass('btn edit size-l float-r'); 1311 var div = '<a id="bttaddedToQuote" href="../../quote-builder.html">'; 1312 div += ' Edit your Quote '; 1313 div += ' </a>'; 1314 $('#divadd').prepend(div); 1315 // $("#bttaddedToQuote").attr("href", "../../quote-builder.html") 1316 // $("#bttaddedToQuote").empty().prepend('Edit to Quote'); 1317 } 1318 else { 1319 $('#divadd').removeClass(); 1320 $('#divadd').addClass('btn add size-l float-r'); 1321 var div = '<a id="bttaddToQuote" href="' + page + '#">'; 1322 div += ' Add to Quote '; 1323 div += ' </a>'; 1324 $('#divadd').prepend(div); 1325 // $("#bttaddToQuote").attr("href", "#") 1326 // $("#bttaddToQuote").empty().prepend('Add to Quote'); 1327 } 1328 1329 1330} 1331 1332function load_item_product_related(ModelNum, ModelName, added, ProductImage, URLPageProduct, ProductType, path, page) { 1333 1334 if (ProductType == "ANTTYPE") { 1335 var div = '<div class="product unit">'; 1336 div += ' <div class="boxImg">'; 1337 div += ' <a href="' + path + 'tracking-products/' + URLPageProduct + '">'; 1338 div += ' <img src="' + path + ProductImage + '" style="width: 150px; height: 160px;" />'; 1339 div += ' </a>'; 1340 div += ' </div>'; 1341 div += ' <br />'; 1342 div += ' <div class="info">'; 1343 div += ' <a class="title" href="' + path + 'tracking-products/' + URLPageProduct + '">'; 1344 div += ' ' + ModelNum; 1345 div += ' </a><span></span>'; 1346 div += ' <span> ' + ModelName + '</span>'; 1347 div += ' <span class="link"><a href="' + path + 'tracking-products/' + URLPageProduct + '">Quick Info</a></span>'; 1348 div += ' </div>'; 1349 div += '</div>'; 1350 $("#boxrelated").prepend(div); 1351 } 1352 else { 1353 1354 if (URLPageProduct != "") { 1355 1356 var div = '<div class="product unit ' + added + '">'; 1357 div += ' <div class="image">'; 1358 div += ' <img src="' + path + ProductImage + '" style="width: 150px; height: 160px;"/>'; 1359 div += ' <span class="btn add size-s"><a href="' + page + '#toggleAdded"'; 1360 div += ' id="' + ModelNum + '" title="' + path + '">Add to Quote</a></span>' 1361 div += ' <span class="btn edit size-s"><a href="' + path + 'quote-builder.html">'; 1362 div += ' Edit your Quote</a></span>'; 1363 div += ' </div>'; 1364 div += ' <div class="info">'; 1365 div += ' <a class="title" href="' + path + 'tracking-products/' + URLPageProduct + '">'; 1366 div += ' ' + ModelNum; 1367 div += ' </a><span></span>';
1368 div += ' <span> ' + ModelName + '</span>'; 1369 div += ' <span class="link"><a href="' + path + 'tracking-products/' + URLPageProduct + '">Quick Info</a></span>'; 1370 div += ' </div>'; 1371 div += '</div>'; 1372 $("#boxrelated").prepend(div); 1373 1374 } 1375 else { 1376 var div = '<div class="product unit ' + added + '">'; 1377 div += ' <div class="image">'; 1378 div += ' <img src="' + path + ProductImage + '" style="width: 150px; height: 160px;"/>'; 1379 div += ' <span class="btn add size-s"><a href="' + page + '#toggleAdded"'; 1380 div += ' id="' + ModelNum + '" title="' + path + '">Add to Quote</a></span>' 1381 div += ' <span class="btn edit size-s"><a href="' + path + 'quote-builder.html">'; 1382 div += ' Edit your Quote</a></span>'; 1383 div += ' </div>'; 1384 div += ' <div class="info">'; 1385 div += ' <h6> ' + ModelNum + '</h6>'; 1386 div += ' <br />'; 1387 div += ' <span> ' + ModelName + '</span>'; 1388 div += ' </div>'; 1389 div += '</div>'; 1390 $("#boxrelated").prepend(div); 1391 } 1392 1393 } 1394 // var div = '<div class="unit callout-wrap">'; 1395 // div += ' <a href="../product-finder/antenna.html" class="callout last"><span class="title">Unsure?</span>'; 1396 // div += ' <span>We will walk you through it!</span> <span class="link arrow">product finder</span>'; 1397 // div += ' </a>'; 1398 // div += '</div>'; 1399 // $("#accessorie").prepend(div); 1400} 1401 1402function load_item_transmitter(ModelNum, ModelName, added, ProductImage, URLPageProduct, TSeries, path, page) { 1403 if (TSeries != "") { 1404 var div = '<div class="product unit">'; 1405 div += ' <div class="boxImg">'; 1406 div += ' <a href="' + URLPageProduct + '">'; 1407 div += ' <img src="' + path + ProductImage + '" style="width: 150px; height: 160px;" />'; 1408 div += ' </a>'; 1409 div += ' </div>'; 1410 div += ' <br />'; 1411 div += ' <div class="info">'; 1412 div += ' <a class="title" href="' + path + 'tracking-products/' + URLPageProduct + '">'; 1413 div += ' ' + ModelNum; 1414 div += ' </a><span></span>'; 1415 div += ' <span> ' + ModelName + '</span>'; 1416 div += ' <span class="link"><a href="' + path + 'tracking-products/' + URLPageProduct + '">Quick Info</a></span>'; 1417 div += ' </div>'; 1418 div += '</div>'; 1419 $("#boxtransmitter").prepend(div); 1420 } 1421 else { 1422 var div = '<div class="product unit ' + added + '">'; 1423 div += ' <div class="image">'; 1424 div += ' <img src="' + path + ProductImage + '" style="width: 150px; height: 160px;" />'; 1425 div += ' <span class="btn add size-s"><a href="' + page + '#toggleAdded"'; 1426 div += ' id="' + ModelNum + '" title="' + path + '" >Add to Quote</a></span>' 1427 div += ' <span class="btn edit size-s"><a href="' + path + 'quote-builder.html">'; 1428 div += ' Edit your Quote</a></span>'; 1429 div += ' </div>'; 1430 div += ' <div class="info">'; 1431 div += ' <a class="title" href="' + path + 'tracking-products/' + URLPageProduct + '">'; 1432 div += ' ' + ModelNum; 1433 div += ' </a><span></span>'; 1434 div += ' <span> ' + ModelName + '</span>'; 1435 div += ' <span class="link"><a href="' + path + 'tracking-products/' + URLPageProduct + '">Quick Info</a></span>'; 1436 div += ' </div>'; 1437 div += '</div>'; 1438 $("#boxtransmitter").prepend(div); 1439 } 1440} 1441 1442function load_item_antenna_accessorie(ModelNum, ModelName, added, ProductImage, URLPageProduct, ProductType, path, page) { 1443 if (ProductType == "ANTTYPE") { 1444 var div = '<div class="product unit">'; 1445 div += ' <div class="boxImg">'; 1446 div += ' <a href="' + path + 'tracking-products/' + URLPageProduct + '">'; 1447 div += ' <img src="' + path + ProductImage + '" style="width: 150px; height: 160px;" />'; 1448 div += ' </a>';
1449 div += ' </div>'; 1450 div += ' <br />'; 1451 div += ' <div class="info">'; 1452 div += ' <a class="title" href="' + path + 'tracking-products/' + URLPageProduct + '">'; 1453 div += ' ' + ModelNum; 1454 div += ' </a><span></span>'; 1455 div += ' <span> ' + ModelName + '</span>'; 1456 div += ' <span class="link"><a href="' + path + 'tracking-products/' + URLPageProduct + '">Quick Info</a></span>'; 1457 div += ' </div>'; 1458 div += '</div>'; 1459 $("#boxaccessorie").prepend(div); 1460 } 1461 else { 1462 var div = '<div class="product unit ' + added + '">'; 1463 div += ' <div class="image">'; 1464 div += ' <img src="' + path + ProductImage + '" style="width: 150px; height: 160px;"/>'; 1465 div += ' <span class="btn add size-s"><a href="' + page + '#toggleAdded"'; 1466 div += ' id="' + ModelNum + '" title="' + path + '">Add to Quote</a></span>' 1467 div += ' <span class="btn edit size-s"><a href="' + path + 'quote-builder.html">'; 1468 div += ' Edit your Quote</a></span>'; 1469 div += ' </div>'; 1470 div += ' <div class="info">'; 1471 div += ' <h6> ' + ModelNum + '</h6>'; 1472 div += ' <br />'; 1473 div += ' <span> ' + ModelName + '</span>'; 1474 div += ' </div>'; 1475 div += '</div>'; 1476 $("#boxaccessorie").prepend(div); 1477 } 1478 // var div = '<div class="unit callout-wrap">'; 1479 // div += ' <a href="../product-finder/antenna.html" class="callout last"><span class="title">Unsure?</span>'; 1480 // div += ' <span>We will walk you through it!</span> <span class="link arrow">product finder</span>'; 1481 // div += ' </a>'; 1482 // div += '</div>'; 1483 // $("#accessorie").prepend(div); 1484} 1485 1486function load_item_receiver(ModelNum, ModelName, added, ProductImage, URLPageProduct, ProductType, path, page) { 1487 1488 var div = '<div class="product unit ' + added + '">'; 1489 div += ' <div class="image">'; 1490 div += ' <img src="' + path + ProductImage + '" style="width: 150px; height: 160px;"/>'; 1491 div += ' <span class="btn add size-s"><a href="' + page + '#toggleAdded"'; 1492 div += ' id="' + ModelNum + '" title="' + path + '">Add to Quote</a></span>' 1493 div += ' <span class="btn edit size-s"><a href="' + path + 'quote-builder.html">'; 1494 div += ' Edit your Quote</a></span>'; 1495 div += ' </div>'; 1496 div += ' <div class="info">'; 1497 div += ' <a class="title" href="' + path + 'tracking-products/' + URLPageProduct + '">'; 1498 div += ' ' + ModelNum; 1499 div += ' </a><span></span>'; 1500 div += ' <span> ' + ModelName + '</span>'; 1501 div += ' <span class="link"><a href="' + path + 'tracking-products/' + URLPageProduct + '">Quick Info</a></span>'; 1502 div += ' </div>'; 1503 div += '</div>'; 1504 $("#boxreceiver").prepend(div); 1505 1506 // var div = '<div class="unit callout-wrap">'; 1507 // div += ' <a href="../product-finder/antenna.html" class="callout last"><span class="title">Unsure?</span>'; 1508 // div += ' <span>We will walk you through it!</span> <span class="link arrow">product finder</span>'; 1509 // div += ' </a>'; 1510 // div += '</div>'; 1511 // $("#accessorie").prepend(div); 1512} 1513 1514 1515// antennas page 1516function cargarcokies_first_antenna(path) { 1517 var selectedTrue = new Array(); 1518 $.ajax({
1519 async: false, 1520 type: "POST", 1521 datetype: "text/xml", 1522 url: path + "Servidor.ashx", 1523 data: "consulta=cargarcokies_first", 1524 success: function (datos) { 1525 var i = 0; 1526 if ($(datos).find('dsQuote').length > 0) { 1527 $(datos).find('dsQuote').each(function () { 1528 i = i + 1; 1529 var Model = $(this).find('Model').text(); 1530 selectedTrue.push(Model); 1531 }); 1532 } 1533 }, 1534 complete: function (objeto, exito) { 1535 1536 if (exito != "success") { 1537 alert("Error acción no realizada."); 1538 } 1539 for (index = 0; index < selectedTrue.length; ++index) { 1540 $("#formAddToQuoteNumber\\:" + selectedTrue[index].toString() + "").attr('checked', true); 1541 $("#modelNumber\\:" + selectedTrue[index].toString() + "").attr('checked', true); 1542 } 1543 } 1544 }); 1545 1546 // $("#modelNumber\\:A1020").attr('checked', true); 1547 // $("#modelNumber\\:A1030").attr('checked', true); 1548 // $("#formAddToQuoteNumber\\:A1020").attr('checked', true); 1549 // $("#formAddToQuoteNumber\\:A1030").attr('checked', true); 1550} 1551 1552function cargarcokies_antenna(cadenacheckbox, cadenanochecked, selectedFalse, table, antennatype, path) { 1553 1554 $.ajax({
1555 async: false, 1556 type: "POST", 1557 datetype: "text/xml", 1558 url: path + "Servidor.ashx", 1559 data: "consulta=cargarcokies_checkbox_from_antennaspage&cadenacheckbox=" + cadenacheckbox + "&cadenanochecked=" + cadenanochecked + "&antennapage=" + antennatype, 1560 success: function (datos) { 1561 var i = 0; 1562 $("#addedItems").empty(); 1563 if ($(datos).find('Table1').length > 0) { 1564 $(datos).find('Table1').each(function () { 1565 i = i + 1; 1566 var Model = $(this).find('Model').text(); 1567 var Description = $(this).find('Description').text(); 1568 var seriesID = $(this).find('seriesID').text(); 1569 var pathImagen = $(this).find('pathImagen').text(); 1570 var urlProduct = $(this).find('urlProduct').text(); 1571 cargarAddedquote(Model, Description, seriesID, pathImagen, urlProduct); 1572 }); 1573 } 1574 1575 $('h4').remove("#itemsquantity"); 1576 $('#addedToQuote').prepend('<h4 id="itemsquantity">' + i + ' Items Added to Your Quote</h4>'); 1577 1578 var countitem = 0; 1579 $(datos).find('dsQuote').each(function () { 1580 countitem = countitem + 1; 1581 }); 1582 1583 span = document.getElementById("cart"); 1584 txt = document.createTextNode("(" + countitem + " items)"); 1585 span.innerText = txt.textContent; 1586 1587 1588 }, 1589 // complete: function () { 1590 // for (index = 0; index < selectedFalse.length; ++index) { 1591 // $("#formAddToQuoteNumber\\:" + selectedFalse[index].toString() + "").prop('checked', false); 1592 // $("#modelNumber\\:" + selectedFalse[index].toString() + "").prop('checked', false); 1593 // } 1594 // }, 1595 error: function (data) { alert("ERROR: " + data.status); }, 1596 timeout: 15000 1597 }); 1598 1599} 1600 1601function cargarAddedquote(Model, Description, seriesID, pathImagen, urlProduct) { 1602 var n = $('tr:last td', $("#tblLocalidad")).length; 1603 var tds = '<tr id="' + n + '" class="DataCell" >'; 1604 var div = ' <div class="product unit">'; 1605 div += ' <div class="image">'; 1606 div += ' <img src="../../' + pathImagen + '" />'; 1607 div += ' </div>'; 1608 div += ' <div class="info">'; 1609 div += ' <a class="title" href="' + urlProduct + '">' + Model + '</a> <span>' + Description + '</span> <span'; 1610 div += ' class="link"><a href="' + urlProduct + '">Quick Info</a></span>'; 1611 div += ' </div>'; 1612 div += ' </div>'; 1613 $("#addedItems").prepend(div); 1614 1615 1616} 1617 1618function add_productToListTransmitterSerie(ModelNum, TWeight, TBattLifeLow, TBattLifeHigh) { 1619 1620 var onclick = "changeckecked(this,'formAddToQuoteNumber')"; 1621 var n = $('tr:last td', $("#productListBody")).length; 1622 var td = '<tr id="' + n + '" >'; 1623 td += ' <td>' 1624 td += ' <div class="fieldArea htmlCheckbox">'; 1625 td += ' <input type="checkbox" name="checktbmodelsmain" checked="checked" id="modelNumber:' + ModelNum + '"'; 1626 td += ' value="' + ModelNum + '" onclick="' + onclick + '" />'; 1627 td += ' <label for="modelNumber:" , ' + ModelNum + '">'; 1628 td += ' ' + ModelNum; 1629 td += ' </label>'; 1630 td += ' </div>'; 1631 td += ' </td>'; 1632 td += ' <td>' + TWeight + '</td>'; 1633 td += ' <td>'; 1634 td += ' ' + TBattLifeLow + ' - ' + TBattLifeHigh + ' days'; 1635 td += ' </td>'; 1636 td += '</tr>'; 1637 $("#productListBody").prepend(td); 1638 1639 1640} 1641 1642function cargarcokies(cadenacheckbox, path) { 1643 $.ajax({
1644 async: false, 1645 type: "POST", 1646 datetype: "text/xml", 1647 url: path + "Servidor.ashx", 1648 data: "consulta=cargarcokies&cadenacheckbox=" + cadenacheckbox, 1649 success: function (datos) { 1650 var item = 0; 1651 if ($(datos).find('NewDataSet').length > 0) 1652 $(datos).find('dsQuote').each(function () { 1653 item = item + 1; 1654 }); 1655 1656 span = document.getElementById("cart"); 1657 txt = document.createTextNode("(" + item + " items)"); 1658 span.innerText = txt.textContent; 1659 1660 }, 1661 error: function (data) { alert("ERRO: " + data.status); }, 1662 timeout: 15000 1663 }); 1664} 1665 1666function AccountInformation_getdata(path) { 1667 1668 if ($.cookie('firstname') != null) { 1669 $.ajax({ 1670 async: false, 1671 type: "POST", 1672 datetype: "text", 1673 url: path + "Servidor.ashx", 1674 data: "consulta=logged_in_getdata", 1675 success: function (datos) { 1676 console.log(datos); 1677 $(datos).find('Table').each(function () { 1678 var firstname = $(this).find('Name').text(); 1679 var lastname = $(this).find('Last_x0020_Name').text(); 1680 var organization = $(this).find('Organization').text(); 1681 var positiontitle = $(this).find('PositionTitle').text(); 1682 var email = $(this).find('Email').text(); 1683 var address1 = $(this).find('Address_x0020_Line_x0020_1').text(); 1684 var address2 = $(this).find('Address_x0020_Line_x0020_2').text(); 1685 var city = $(this).find('City').text(); 1686 var state = $(this).find('State').text(); 1687 var zip = $(this).find('Zip').text(); 1688 var country = $(this).find('Country').text(); 1689 var phone = $(this).find('Phone_x0020_1').text(); 1690 1691 $('#loginForm\\:nameFirst').val(firstname); 1692 $('#loginForm\\:nameLast').val(lastname); 1693 $('#loginForm\\:company').val(organization); 1694 $('#loginForm\\:position').val(positiontitle); 1695 $('#loginForm\\:email').val(email); 1696 $('#loginForm\\:address1').val(address1); 1697 $('#loginForm\\:address2').val(address2); 1698 $('#loginForm\\:city').val(city); 1699 if (state != "") 1700 $('#loginForm\\:state').val(state); 1701 $('#loginForm\\:zip').val(zip); 1702 $('#loginForm\\:country').val(country); 1703 $('#loginForm\\:phone').val(phone); 1704 1705 var shippingAddress = firstname.toUpperCase() + " " + lastname.toUpperCase() + '<br />' + 1706 address1.toUpperCase() + " " + address2.toUpperCase() + '<br />' + city.toUpperCase() + 1707 ", " + state.toUpperCase() + " " + zip.toUpperCase() + '<br />' + country.toUpperCase(); 1708 }); 1709 } 1710 }); 1711 } 1712 else { 1713 document.location = path + "login.html"; 1714 } 1715} 1716 1717//request repair 1718 1719function submit_requestrepair(path) { 1720 //product list 1721 //Get of tblSerialNumber directly in the Servidor.ashx 1722 1723 //ship to 1724 var nameFirstshipto = $('#repairForm\\:ship-to\\:nameFirst').val().trim(); 1725 var nameLastshipto = $('#repairForm\\:ship-to\\:nameLast').val().trim(); 1726 var address1shipto = $('#repairForm\\:ship-to\\:address1').val().trim(); 1727 var address2shipto = $('#repairForm\\:ship-to\\:address2').val().trim(); 1728 var cityshipto = $('#repairForm\\:ship-to\\:city').val().trim(); 1729 var stateshipto = $('#repairForm\\:ship-to\\:state').val().trim(); 1730 var zipshipto = $('#repairForm\\:ship-to\\:zip').val().trim(); 1731 var countryshipto = $('#repairForm\\:ship-to\\:country').val().trim(); 1732 var phoneshipto = $('#repairForm\\:ship-to\\:phone').val().trim(); 1733 var emailshipto = $('#repairForm\\:ship-to\\:email').val().trim(); 1734 1735 var shipreturnmethod = ""; 1736 $("input:radio[name=repairForm\\:ship-to\\:returnMethod]").each(function () { 1737 if ($(this).is(':checked')) { 1738 if ($(this).attr('id') == 'repairForm:ship-to:returnMethod:upsGround') 1739 shipreturnmethod = "UPS Ground"; 1740 if ($(this).attr('id') == 'repairForm:ship-to:returnMethod:ups2Day') 1741 shipreturnmethod = "UPS 2Day"; 1742 if ($(this).attr('id') == 'repairForm:ship-to:returnMethod:upsOvernight') 1743 shipreturnmethod = "UPS Overnight"; 1744 if ($(this).attr('id') == 'repairForm:ship-to:returnMethod:other') 1745 shipreturnmethod = "Other"; 1746 } 1747 });
1748 1749 //bill to 1750 1751 var nameFirstBillto = $('#repairForm\\:bill-to\\:nameFirst').val().trim(); 1752 var nameLastBillto = $('#repairForm\\:bill-to\\:nameLast').val().trim(); 1753 var address1Billto = $('#repairForm\\:bill-to\\:address1').val().trim(); 1754 var address2Billto = $('#repairForm\\:bill-to\\:address2').val().trim(); 1755 var cityBillto = $('#repairForm\\:bill-to\\:city').val().trim(); 1756 var stateBillto = $('#repairForm\\:bill-to\\:state').val().trim(); 1757 var zipBillto = $('#repairForm\\:bill-to\\:zip').val().trim(); 1758 var countryBillto = $('#repairForm\\:bill-to\\:country').val().trim(); 1759 var phoneBillto = $('#repairForm\\:bill-to\\:phone').val().trim(); 1760 var emailBillto = $('#repairForm\\:bill-to\\:email').val().trim(); 1761 1762 var paymentmethod = ""; 1763 var number_paymentmethod = ""; 1764 $("input:radio[name=repairForm\\:bill-to\\:paymentMethod]").each(function () { 1765 if ($(this).is(':checked')) { 1766 if ($(this).attr('id') == 'repairForm:bill-to:paymentMethod:visa') 1767 paymentmethod = "VISA"; 1768 if ($(this).attr('id') == 'repairForm:bill-to:paymentMethod:mastercard') 1769 paymentmethod = "MASTERCARD"; 1770 if ($(this).attr('id') == 'repairForm:bill-to:paymentMethod:invoice') 1771 { 1772 paymentmethod = "INVOICE"; 1773 number_paymentmethod = $('#repairForm\\:bill-to\\:paymentMethod\\:POorCCNumber').val(); 1774 } 1775 } 1776 }); 1777 1778 1779 ////contactInfo 1780 nameFirstContactinfo = $('#repairForm\\:contact-info\\:nameFirst').val().trim(); 1781 nameLastContactinfo = $('#repairForm\\:contact-info\\:nameLast').val().trim(); 1782 positionTitleContactinfo = $('#repairForm\\:contact-info\\:position').val().trim(); 1783 organizationContactinfo = $('#repairForm\\:contact-info\\:company').val().trim(); 1784 phoneContactinfo = $('#repairForm\\:contact-info\\:phone').val().trim(); 1785 emailContactinfo = $('#repairForm\\:contact-info\\:email').val().trim(); 1786 1787 //var updateContact = $('#repairForm\\:contac-info\\:UpdateInfoContact'); 1788 1789 1790 //var updatecontact = $('#repairForm\\:contact-info\\:UpdateInfoContact').is(':checked'); 1791 1792 1793 1794 // description problem 1795 1796 var descriptionproblem = $('#repairForm\\:descriptionProblem').val().trim(); 1797 1798 $.ajax({
1799 async: false, 1800 type: "POST", 1801 datetype: "text/xml", 1802 url: path + "Servidor.ashx", 1803 data: "consulta=submit_requestrepair&nameFirstshipto=" + nameFirstshipto + "&nameLastshipto=" + nameLastshipto + "&address1shipto=" + address1shipto + 1804 "&address2shipto=" + address2shipto + "&cityshipto=" + cityshipto + "&stateshipto=" + stateshipto + "&zipshipto=" + zipshipto + 1805 "&countryshipto=" + countryshipto + "&phoneshipto=" + phoneshipto + "&emailshipto=" + emailshipto + "&nameFirstBillto=" + nameFirstBillto + 1806 "&nameLastBillto=" + nameLastBillto + "&address1Billto=" + address1Billto + "&address2Billto=" + address2Billto + 1807 "&cityBillto=" + cityBillto + "&stateBillto=" + stateBillto + "&zipBillto=" + zipBillto + 1808 "&countryBillto=" + countryBillto + "&phoneBillto=" + phoneBillto + "&emailBillto=" + emailBillto + "&nameFirstContactinfo=" + nameFirstContactinfo + 1809 "&nameLastContactinfo=" + nameLastContactinfo + "&organizationContactinfo=" + organizationContactinfo + "&positionTitleContactinfo=" + positionTitleContactinfo + "&phoneContactinfo=" + phoneContactinfo + 1810 "&emailContactinfo=" + emailContactinfo + "&shipreturnmethod=" + shipreturnmethod + "&paymentmethod=" + paymentmethod + "&number_paymentmethod=" + number_paymentmethod + "&descriptionproblem=" + descriptionproblem , 1811 success: function (datos) { 1812 if ($(datos).find('NewDataSet').length > 0); 1813 $(datos).find('Table1').each(function () { 1814 var verificate = $(this).find('verificate').text(); 1815 1816 if (verificate == 'true') { 1817 document.location = path + "quote-builder/repair-builder-success.html"; 1818 } 1819 else { 1820 alert("Please check your quote."); 1821 } 1822 }); 1823 }, 1824 complete: function (objeto, exito) { 1825 1826 if (exito != "success") { 1827 alert("Error - this action was not completed."); 1828 } 1829 } 1830 }); 1831} 1832 1833 1834 1835 1836 1837 1838 1839
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.