Advertisement

10.17.2007 at 10:54AM PDT, ID: 22899752
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.4

Confirm Dialogue Box not functioning properly

Asked by Gewgala in JavaScript, C# Programming Language, Programming for ASP.NET

Tags: , ,

I have 3 pages on my site, Collaboration, Review, and Admin.  Collaboration is a .aspx page with 2 iframes in it, the iframes are named collaborationFrame and timerFrame.  The collaborationFrame has a .aspx file in it that opens up 2 other windows, the Review and Admin.  So altogether you have the three main screens, Collaboration, Admin, and Review.  I would like it so that when the user leaves or closes the Collaboration page that a confirm dialogue box shows up, and if the user clicks yes or ok to continue, it closes the Admin and Review windows.  The following code that I have works just fine for this.  If the user clicks ok the 2 windows (if opened) will close.  But...

1. If the user clicks cancel, the collaboration page refreshes.  This can't happen.
2. If the user simply closes the collaboration window, the confirm dialogue will not show up at all.  If they try to refresh it or navigate away from it, it will work as intended.  I need it to show up when the user attempts to close the window as well though.

Here is my code:

        function UnloadPrompt()
        {
            var reviewConfirm="";
            var adminConfirm="";
            var and="";
            var s="";
            var reviewWindow = top.collaborationFrame.Review;
            var adminWindow = top.collaborationFrame.Admin;
            var confirmPrompt = null;
           
            if ((reviewWindow!=null) && (adminWindow!=null))
            {
                reviewConfirm = "Review ";
                adminConfirm = "Administration";
                and = "and ";
                s = "s";
                confirmPrompt="yes";
            }
            else if (adminWindow!=null)
            {
                adminConfirm = "Administration";
                confirmPrompt="yes";
            }
            else if (reviewWindow!=null)
            {
                reviewConfirm = "Review";
                confirmPrompt="yes";
            }
            if (confirmPrompt=="yes")
            {
                if (confirm("Closing this window will close the "+reviewConfirm+and+adminConfirm+" window"+s+".\n\nAre you sure?")==true)
                {
                    if (adminWindow!=null)
                        adminWindow.close();
                    if (reviewWindow!=null)
                        reviewWindow.close();
                    return true
                }
                else
                {
                    return false
                }
            }
           
        }    
    </script>
</head>
<body onunload="return UnloadPrompt();">

The code resides on the page that's in the timerFrame (iframe) right now, which is within the collaboration page.  I did this in hopes that when pressing cancel the whole collaboration page wouldn't refresh but it doesn't make a difference.  It exhibits the same behavior in the timerFrame as it does in the collaboration page.

Any ideas??Start Free Trial
[+][-]10.17.2007 at 10:59AM PDT, ID: 20095560

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 11:06AM PDT, ID: 20095612

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 11:13AM PDT, ID: 20095658

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 11:39AM PDT, ID: 20095865

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 11:49AM PDT, ID: 20095937

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 11:57AM PDT, ID: 20095998

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 12:18PM PDT, ID: 20096163

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 12:54PM PDT, ID: 20096473

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 01:34PM PDT, ID: 20096836

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 02:29PM PDT, ID: 20097194

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 10:37PM PDT, ID: 20098895

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 11:21AM PDT, ID: 20103276

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 11:26AM PDT, ID: 20103321

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 01:59PM PDT, ID: 20104627

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 02:47PM PDT, ID: 20104955

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.19.2007 at 06:32AM PDT, ID: 20108709

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.19.2007 at 09:05AM PDT, ID: 20109979

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, C# Programming Language, Programming for ASP.NET
Tags: confirm, box, show
Sign Up Now!
Solution Provided By: Gewgala
Participating Experts: 2
Solution Grade: B
 
 
[+][-]10.19.2007 at 09:59AM PDT, ID: 20110416

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.20.2007 at 08:10AM PDT, ID: 20115029

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628