🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #35

Re: Mouse events with IE5 ???

#35
From: Jamie
Date: Thu, 01 Feb 2001 00:05
36 lines
2122 bytes
In article <3A787A63.6A16CEDE@fse.ulaval.ca>,
  Christian St-Pierre <Christian.St-Pierre@fse.ulaval.ca> wrote:
> Hello, I use this function to capture mouse events on a page:
>
>  <script Language="Javascript">
>
>  document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE |
> Event.MOUSEUP | Event.CLICK)
>  document.onMouseDown = Message
>
> function Message() {
> alert('some_message')
> }
>
> </script>
>
> It works just fine with Netscape but I can't make it work with IE5...
I
> tried a couple of things such as using an event handler or using the
> other events (MOUSEMOVE, etc.) but without success.
>
> Anyone can point me out the way to make it work with IE5 ?
>
> Thanks a lot !
>
> Christ.
>
>
IE introduced the setCapture() and releaseCapture() methods in IE5.0,
to accomplish event capturing. See http://msdn.microsoft.com/workshop/
then select (from Left Menu) DHTML Reference then methods. Select
setCapture() and releaseCapture() from parent frame.


Sent via Deja.com
http://www.deja.com/
Technical Details
Message-ID: <95a97n$c74$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!144.212.100.101!newsfeed.mathworks.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail
References: <3A787A63.6A16CEDE@fse.ulaval.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb3cb,af7b2b3b2ed25b8a
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: 106f62,af7b2b3b2ed25b8a
X-Google-Attributes: gid106f62,public
X-Google-Thread: 100e17,af7b2b3b2ed25b8a
X-Google-Attributes: gid100e17,public
X-Google-ArrivalTime: 2001-01-31 16:20:07 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!144.212.100.101!newsfeed.mathworks.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail
From: Jamie <jmajews1@hotmail.com>
Newsgroups: comp.lang.javascript,alive.internet.lang.javascript,alt.html.dhtml
Subject: Re: Mouse events with IE5 ???
Date: Thu, 01 Feb 2001 00:05:17 GMT
Organization: Deja.com
Lines: 36
Message-ID: <95a97n$c74$1@nnrp1.deja.com>
References: <3A787A63.6A16CEDE@fse.ulaval.ca>
NNTP-Posting-Host: 209.69.6.170
X-Article-Creation-Date: Thu Feb 01 00:05:17 2001 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
X-Http-Proxy: 1.1 x57.deja.com:80 (Squid/1.1.22) for client 209.69.6.170
X-MyDeja-Info: XMYDJUIDjmajews1