Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > clientside code

Reply
Thread Tools

clientside code

 
 
=?Utf-8?B?Um9nZXI=?=
Guest
Posts: n/a
 
      09-27-2006
Is there anyway client side in IE to determine when the "X" button or the
"Close" menu item is clicked?
 
Reply With Quote
 
 
 
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      09-27-2006
yes, hook to the window.onUnload, and check the x & y of the mouse, if its
off screen, then its a close()

-- bruce (sqlwork.com)

"Roger" <> wrote in message
news:C3699A7D-CBAE-4012-A354-...
> Is there anyway client side in IE to determine when the "X" button or the
> "Close" menu item is clicked?



 
Reply With Quote
 
 
 
 
=?Utf-8?B?Um9nZXI=?=
Guest
Posts: n/a
 
      09-27-2006
I was looking at event.ClientY and it is less then zero, but, if you click
the Back button, Y coordinate is also negative. the clientX is positive. Is
there a way to say look at the width of the screen and then the x coordinate?

"bruce barker (sqlwork.com)" wrote:

> yes, hook to the window.onUnload, and check the x & y of the mouse, if its
> off screen, then its a close()
>
> -- bruce (sqlwork.com)
>
> "Roger" <> wrote in message
> news:C3699A7D-CBAE-4012-A354-...
> > Is there anyway client side in IE to determine when the "X" button or the
> > "Close" menu item is clicked?

>
>
>

 
Reply With Quote
 
Laurent Bugnion
Guest
Posts: n/a
 
      09-27-2006
Hi,

bruce barker (sqlwork.com) wrote:
> yes, hook to the window.onUnload, and check the x & y of the mouse, if its
> off screen, then its a close()
>
> -- bruce (sqlwork.com)


However, don't rely on it. This shouldn't replace proper session
handling on the server.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: open PDF document in ASP.Net using Clientside code Rick ASP .Net 0 12-11-2006 11:20 PM
Help... options added to Select element from clientside automation not working properly with Code Behind TCook ASP .Net Web Controls 0 08-13-2006 05:04 PM
Help... options added to Select element from clientside automation not working properly with Code Behind TCook ASP .Net 0 08-13-2006 05:04 PM
ListBox clientside changes not reflecting on serverside code Luis Ferrao ASP .Net 2 02-21-2005 02:17 PM
Creating ClientSide code thru PreRender =?iso-8859-1?Q?Ti=EBsto?= ASP .Net 3 11-13-2004 05:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57