1function CallWebServiceFromJqueryPopup() { 2 try { 3 //alert('hi'); 4 //startSpinner(); 5 6 //alert("https://" + localStorage.webPanel + "/WebServiceLiveRatePageMessage.asmx/getPopUpMessage?username=" + localStorage.appnameWithMiniadminId); 7 8 $.ajax({ 9 type: "GET", 10 //url: "http://bulliontrading.chirayusoft.com/WebServiceLiveRatePageMessage.asmx/getLiveRatePageMessage?username=shimmers", 11 url: "https://" + localStorage.webPanel + "/WebServiceLiveRatePageMessage.asmx/getPopUpMessage?username=" + localStorage.appnameWithMiniadminId, 12 dataType: "text", 13 crossDomain: true, 14 processData: false, 15 success: OnSuccessPopup, 16 error: OnErrorPopup, 17 cache: false 18 }); 19 } 20 catch (e) { 21 //alert("CallWebServiceFromJquery " + e); 22 } 23 24 25} 26 27var convertPopup = function (convert) { 28 29 return $("<span />", { html: convert }).text(); 30 31}; 32 33var PopupLiveRateMessage = ""; 34 35function OnSuccessPopup(data, status) { 36 //alert(data); 37 try { 38 39 //stopSpinner(); 40 var messages = data.split("|"); 41 42 if (typeof messages != 'undefined') { 43 44 45 //var zebra = document.getElementById("gvDataLiveRateMessage"); 46 47 //var trow; 48 49 var msg = messages[1]; 50 51 if (msg.length > 5) { 52 53 //alert(msg); 54 var trowString = convertPopup(msg); 55 //PopupLiveRateMessage = trowString; 56 $("#gvDataPopup").html(trowString); 57 $('#myModal').modal('show'); 58 59 //trowString.prependTo(zebra); 60 //trow = $(trowString); 61 //alert(trow); 62 //trow.prependTo(zebra); 63 } 64 else { 65 PopupLiveRateMessage = ""; 66 67 } 68 69 70 } 71 else { 72 PopupLiveRateMessage = ""; 73 74 } 75 76 } 77 catch (e) { 78 //alert("OnSuccess" + e); 79 } 80 81 82} 83 84 85 86 87function OnErrorPopup(request, status, error) { 88 //stopSpinner(); 89 //alert("Webservice Error: " + request.statusText); 90} 91 92 93 94$(document).ready(function () { 95 CallWebServiceFromJqueryPopup(); 96 //$('#myModal').modal('show'); 97});
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.