Click here to Skip to main content
15,792,657 members
Home / Discussions / Web Development
   

Web Development

 
Questionhow to get object iframe with asp Pin
ranuth18-Aug-09 18:52
ranuth18-Aug-09 18:52 
AnswerRe: how to get object iframe with asp Pin
Marc Firth18-Aug-09 23:00
Marc Firth18-Aug-09 23:00 
QuestionTransfer JavaScript Array between pages Pin
Joshua Henderson18-Aug-09 18:16
Joshua Henderson18-Aug-09 18:16 
AnswerRe: Transfer JavaScript Array between pages Pin
Marc Firth18-Aug-09 22:52
Marc Firth18-Aug-09 22:52 
GeneralRe: Transfer JavaScript Array between pages Pin
Joshua Henderson20-Aug-09 3:23
Joshua Henderson20-Aug-09 3:23 
GeneralRe: Transfer JavaScript Array between pages Pin
Marc Firth20-Aug-09 3:47
Marc Firth20-Aug-09 3:47 
Questionhow to show an Alarm ? Pin
Lagziyan18-Aug-09 4:23
Lagziyan18-Aug-09 4:23 
QuestionClosing page in Java Script Pin
Hakmeh Mohannad17-Aug-09 21:53
Hakmeh Mohannad17-Aug-09 21:53 
hi all
all what i want to do is to show a confirmation message the user when he try to close the page, if he want to close the page i have some code to execute, but if he decide to stay i want to keep the window open.

i used the following function but it have one issue: when the user click cancel the page get closed
so can you help me and tell what i did wrong
am using IE7

window.onbeforeunload = HandleOnClose;
        function HandleOnClose(event) 
        {
            if(currentElement == "" || (!(currentElement.getAttribute("tag")=="DonotCallSaveonLoad")))
            {
                if(divTimer.style.display != 'none')
                {
                    var objWarningMsg = document.getElementById("<%=hdnCloseWOWarning.ClientID %>").value;
                    if(objWarningMsg == "False")
                    {
                        var objconfirm = confirm("you wont be able to open this quiz again, continue?")
                        if(objconfirm == true)
                        {
                            FunctiontoCallSaveData();
                        }
                        else
                        {
                            
                        }
                    }
                    else
                    {
                        FunctiontoCallSaveData();
                    }
                }
                else
                {
                    FunctiontoCallSaveData();
                }
            }
        }

AnswerRe: Closing page in Java Script Pin
Marc Firth18-Aug-09 0:48
Marc Firth18-Aug-09 0:48 
GeneralRe: Closing page in Java Script Pin
Hakmeh Mohannad18-Aug-09 1:11
Hakmeh Mohannad18-Aug-09 1:11 
GeneralRe: Closing page in Java Script Pin
Marc Firth18-Aug-09 1:13
Marc Firth18-Aug-09 1:13 
AnswerRe: Closing page in Java Script Pin
nacool31-Aug-09 1:54
nacool31-Aug-09 1:54 
QuestionAccessing remote window HTML elements via getElementsByTagName [modified] Pin
Art K17-Aug-09 12:26
Art K17-Aug-09 12:26 
QuestionVolunteer FD Seeking Help in designing small training website Pin
MadFrenchieFire17-Aug-09 7:49
MadFrenchieFire17-Aug-09 7:49 
AnswerRe: Volunteer FD Seeking Help in designing small training website Pin
David Mujica17-Aug-09 9:06
David Mujica17-Aug-09 9:06 
GeneralRe: Volunteer FD Seeking Help in designing small training website Pin
MadFrenchieFire17-Aug-09 9:21
MadFrenchieFire17-Aug-09 9:21 
GeneralRe: Volunteer FD Seeking Help in designing small training website Pin
Marc Firth18-Aug-09 0:25
Marc Firth18-Aug-09 0:25 
QuestionEnterprise Java Bean help Pin
crain198117-Aug-09 7:24
crain198117-Aug-09 7:24 
Questionhow to edit more then 10000 html pages. Pin
Member 311322517-Aug-09 3:06
Member 311322517-Aug-09 3:06 
AnswerRe: how to edit more then 10000 html pages. Pin
Marc Firth17-Aug-09 3:35
Marc Firth17-Aug-09 3:35 
GeneralRe: how to edit more then 10000 html pages. Pin
Member 311322517-Aug-09 4:12
Member 311322517-Aug-09 4:12 
GeneralRe: how to edit more then 10000 html pages. Pin
Anurag Gandhi17-Aug-09 7:02
professionalAnurag Gandhi17-Aug-09 7:02 
GeneralRe: how to edit more then 10000 html pages. Pin
Member 311322517-Aug-09 21:57
Member 311322517-Aug-09 21:57 
Questionhow to show weather ,temperature,time country wise Pin
smiley_jatin16-Aug-09 20:26
smiley_jatin16-Aug-09 20:26 
AnswerRe: how to show weather ,temperature,time country wise Pin
Marc Firth16-Aug-09 23:10
Marc Firth16-Aug-09 23:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.