=== sbiftrade.bf API Endpoints from JS === var URL_SERVICE = "https://www.sbiftrade.bf/SBIFTradeServer/"; //var URL_SERVICE = "http://localhost:52237/"; Cli_Password = "", nbauth = 0, msgErrorServer = 'Problème de communication avec le serveur', PORTEFEUILLE = null, AffPORTF = 0, updatePassWordWindow = null, Aff_UpdatPSW = 0, console.warn("Overriding existing Array.prototype.equals. Possible causes: New API defines the method, there's a framework conflict or you've got double inclusions in your code."); type_ordre_resum_portf = "", type_resum_port = "", cours_resum_portf = 0, --- function champsAuthentificationValides() { return $.trim($("#usernameInput").val()) == "" || $.trim($("#passwordInput").val()) == ""; if (!champsAuthentificationValides()) { Make_Login($("#usernameInput").val(), $("#passwordInput").val()); $("#usernameInput").val("") //usernameInput.value = ""; //passwordInput.value = ""; $("#passwordInput").val("") $('#usernameInput').focus(); //appel service authentification function Make_Login(_Login, _Password) { url: URL_SERVICE + "Service.svc/Auth", data: { log: _Login, psw: stringify(CryptoJS.SHA1(_Password)), resolution: '' }, OnError(msgErrorServer); OnErrorWithMsg(msgErrorServer); passwordInput.value = ""; $('#passwordInput').focus(); $("#feuille").load('web/main.html', function () { nbauth = 0; initMainHandlers('externe'); }); url: URL_SERVICE + "Service.svc/Ping", ouvrirFenetreReinitPasswordMobile(); nbauth = 0; url: URL_SERVICE + "Service.svc/Ajlogweb", OnErrorWithMsg(msgErrorServer); url: URL_SERVICE + "Service.svc/authentficationLogedIn_2", //affichagePortefeuille(); error: function (a, b, c) { OnError(msgErrorServer) } url: URL_SERVICE + "Service.svc/updateSessionCpt", hideWindow(updatePassWordWindow, Aff_UpdatPSW); hideWindow(PORTEFEUILLE, AffPORTF); error: function (a, b, c) { OnError(msgErrorServer) } url: URL_SERVICE + "Service.svc/refreshSession", OnError(msgErrorServer) --- $("#B_PORTEF").button({ icons: { primary: "pf" }, label: " " }).attr("title", "Portefeuille").click(function () { if (AffPORTF == 0) { affichagePortefeuille(); } else { hideWindow(PORTEFEUILLE, AffPORTF); } //var printURL_TARIF = URL_SERVICE + "Default.aspx?R=TARIF"; //window.open(printURL_TARIF, '_blank');