Click here to Skip to main content
15,917,709 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem in setting up auto signout when closing the application browser window Pin
Not Active4-Jan-07 15:50
mentorNot Active4-Jan-07 15:50 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Venkatesh Mookkan4-Jan-07 16:43
Venkatesh Mookkan4-Jan-07 16:43 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Not Active4-Jan-07 16:53
mentorNot Active4-Jan-07 16:53 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Venkatesh Mookkan4-Jan-07 16:56
Venkatesh Mookkan4-Jan-07 16:56 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Not Active4-Jan-07 17:15
mentorNot Active4-Jan-07 17:15 
GeneralSolved like this Pin
Renukapadhamanaban7-Jan-07 13:52
Renukapadhamanaban7-Jan-07 13:52 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Renukapadhamanaban4-Jan-07 16:59
Renukapadhamanaban4-Jan-07 16:59 
AnswerRe: Problem in setting up auto signout when closing the application browser window [modified] Pin
Venkatesh Mookkan4-Jan-07 17:14
Venkatesh Mookkan4-Jan-07 17:14 
While i was experimenting with code i found out that when the browser (IE) is being closed (NOT WHEN BEING REFRESHED) client screen left-top coordinate (window.screenLeft) is returned a strange 10004.

<script>
    window.onunload=unloadEvent; //unload event which is replaced as removed.
    
    function unloadEvent(){
        if(window.screenLeft < 10004){
            //this is refresh
        }
        else{
            //this is close
        }
    }
</script>


This code is tested and works fine in IE 6.0.2 as I have installed. It will fail in Mozilla/Opera (I think).Cool | :cool:


-- modified at 23:22 Thursday 4th January, 2007


Regards,
Venkatesh Mookkan.
Software Engineer, India
My: Website | Yahoo Group

GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Not Active4-Jan-07 17:19
mentorNot Active4-Jan-07 17:19 
QuestionDisplaying database content / best practices Pin
PGumbo4-Jan-07 13:41
PGumbo4-Jan-07 13:41 
AnswerRe: Displaying database content / best practices Pin
Mike Ellison4-Jan-07 14:05
Mike Ellison4-Jan-07 14:05 
AnswerRe: Displaying database content / best practices Pin
Not Active4-Jan-07 15:46
mentorNot Active4-Jan-07 15:46 
QuestionASP.NET master pages Pin
anikhil4-Jan-07 12:17
anikhil4-Jan-07 12:17 
AnswerRe: ASP.NET master pages Pin
Chris Buckett4-Jan-07 21:24
Chris Buckett4-Jan-07 21:24 
QuestionExport to excel Pin
felopater4-Jan-07 11:04
felopater4-Jan-07 11:04 
AnswerRe: Export to excel Pin
saravanan054-Jan-07 12:12
saravanan054-Jan-07 12:12 
Questioncheck1 not declared Pin
luvdairish4-Jan-07 8:26
luvdairish4-Jan-07 8:26 
AnswerRe: check1 not declared Pin
ednrgc4-Jan-07 9:33
ednrgc4-Jan-07 9:33 
AnswerRe: check1 not declared Pin
Christian Graus4-Jan-07 11:45
protectorChristian Graus4-Jan-07 11:45 
AnswerRe: check1 not declared Pin
nagendra rao s.v.4-Jan-07 18:42
nagendra rao s.v.4-Jan-07 18:42 
QuestionN-Tier question [modified] Pin
Marcus J. Smith4-Jan-07 7:47
professionalMarcus J. Smith4-Jan-07 7:47 
AnswerRe: N-Tier question Pin
Mike Ellison4-Jan-07 14:14
Mike Ellison4-Jan-07 14:14 
GeneralRe: N-Tier question Pin
Marcus J. Smith5-Jan-07 2:25
professionalMarcus J. Smith5-Jan-07 2:25 
GeneralRe: N-Tier question Pin
Mike Ellison8-Jan-07 6:24
Mike Ellison8-Jan-07 6:24 
QuestionSeeking advice Pin
Keith Andersch4-Jan-07 6:15
Keith Andersch4-Jan-07 6:15 

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.