fabien-d / alertify.js

JavaScript Alert/Notification System
http://fabien-d.github.com/alertify.js/
4.26k stars 726 forks source link

Alertify Confirm Does not execute Server side code #237

Open mixednews opened 10 years ago

mixednews commented 10 years ago

I call sucessfully the code for the client side, but my process in c# does not execute, my code is:

function ProccNew(e) { e = false; alertify.set({ buttonFocus: "Cancel" });

        var multiStr = [
                "¿Are you sure?",
                "Really sure"
       ].join(" <br /> ");

        alertify.confirm(multiStr, function (proce) {
            if (proce) {
                document.getElementById('IntegraDS').style.display = "";
                setTimeout('document.images["SyncDaProc"].src="/Image/SyncProc.gif"', 400);
            } else {
                alertify.error("Proceso Cancelado");
            }
        });
        return proce;
    }

in c# the code is called in the asp:button_click event

Any suggestions on this