Click here to Skip to main content
13,089,504 members (61,458 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Here is my Code

this.aForms = new Array("Page1.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];
            case "finish" :
                this.wizPointer = this.wizPointer + 1;
                form = this.aForms[this.wizPointer];
            default :
                form = "PageCancel.asp";
    if(typeof(form) != "undefined") {

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

        objWizard.status ="finish";

while (objWizard.status =="next"){

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 9-May-13 2:50am
Róhãn Lëuvä 10-May-13 0:21am
Stop the code execution? What you want to achieve through this?
Susheel Kumar Verma 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.
Róhãn Lëuvä 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?
Susheel Kumar Verma 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.
Susheel Kumar Verma 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 9 May 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100