Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Here is my Code
 
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 9-May-13 3:50am
Comments
Róhãn Lëuvä at 10-May-13 0:21am
   
Stop the code execution? What you want to achieve through this?
Susheel Kumar Verma at 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ä at 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 at 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 at 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
0 OriginalGriff 410
1 Jochen Arndt 200
2 Richard MacCutchan 135
3 DamithSL 105
4 PIEBALDconsult 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 9 May 2013
Copyright © CodeProject, 1999-2014
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