Click here to Skip to main content
15,896,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here is my Code

C#
this.aForms = new Array("Page1.asp",
                "Page2.asp",
                "Page3.asp",
                "Page4.asp");



function Wizard_showDialog()
{
        var form = "PageCancel.asp";
        var frmArgs = "?iAuditID=" + this.iAuditID
            + "&SID=" + this.SID
            + "&PID=" + this.PID
            + "&CGMTO=" + this.CGMTO
            + "&Pers=" + this.Personality
            + "&sGroupName=" + encodeURIComponent(this.sGroupName)
            + "&sTableName=" + this.sTableName
            + "&sFileName=" + encodeURIComponent(this.sFileName)
            + "&sFileType=" + this.sFileType
            + "&sDesc=" + encodeURIComponent(this.sDescription.substring(0,1000))
            + "&dGroupDate=" + this.dGroupDate
            + "&sFieldList=" + this.fieldMap
            + "&sFirstLine=" + this.sFirstLine
            + "&dbDriver=" + this.dbDriver
            + "&dbPath=" + this.dbPath
            + "&sTempDir=" + this.sTempDir
            + "&updateAud=" + this.updateAud
            + "&scopeSN=" + this.scopeSN
            + "&GMT=" + this.ClientGMTOffset
            + "&importLib=" + this.importLib
            + "&atList=" + this.atList
            + "&annAct=" + this.annAct
            + "&MergeTo=" + Audit.MergeTo
            + "&MergeFrom=" + Audit.MergeFrom;

        switch (this.status){
            case "next":
                this.wizPointer = this.wizPointer + 1;
                form = this.aForms[this.wizPointer];
                break;
            case "finish" :
                this.wizPointer = this.wizPointer + 1;
                form = this.aForms[this.wizPointer];
                break;
            default :
                form = "PageCancel.asp";
                break;
        }

    if(typeof(form) != "undefined") {



       var url = form + frmArgs;
            $.showModalDialog({
                url: url,
                dialogArguments: window,
                height: 470,
                width: 400,
                scrollable: false,
                onClose: function () {
                    var returnedValue = this.returnValue;
                    result=returnedValue;
                }
            });



    }
    else{
        objWizard.status ="finish";
        }
}


while (objWizard.status =="next"){
            objWizard.showDialog();
        }

i have a next button on popup window and i want to stop the code execution until i don nott click on next button and when i clock on next button i want to move next page in popup window like this i have four steps to complete the process and finally close the popup.
Thanks in advance.
Posted
Comments
Thanks7872 10-May-13 0:21am    
Stop the code execution? What you want to achieve through this?
[no name] 10-May-13 0:46am    
i want to move on next form when i click on next button but this code is not waiting me to click next button it directelly going on last form when i click next button on first form.
Thanks7872 10-May-13 0:49am    
Then theres no need to STOP THE EXECUTION.You should work out with the redirection.Dont you think STOPING THE CODE EXECUTION doesnt makes sense here?
[no name] 10-May-13 0:58am    
see when i am using javascript code to open popup window i.e window.showModalDialog() then my it is working fine but when i use jquery to open popup window then only i am getting this issu.
[no name] 10-May-13 1:01am    
while using javascript code to open popup window it does not move next in the loop until i dont click next but in JQuery it is not waiting to click next it complete the loop before showing the popup window

Plz help me if possible..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900