πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #36

Re: Mouse events with IE5 ???

#36
From: Christian St-Pierre
Date: Thu, 01 Feb 2001 18:04
48 lines
2600 bytes
Thanks Jamie !

I will chek it. I have been able to do it by introducing the event handler
in the <body> tag :

<body  onMouseDown=someJSfunction()>

It works well with ie5.

Christ.

Jamie a οΏ½crit :

> 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: <3A79A4F2.C5307AB4@fse.ulaval.ca>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!sunqbc.risq.qc.ca!carnaval.risq.qc.ca.POSTED!not-for-mail
References: <3A787A63.6A16CEDE@fse.ulaval.ca> <95a97n$c74$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
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-02-01 10:04:15 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!sunqbc.risq.qc.ca!carnaval.risq.qc.ca.POSTED!not-for-mail
Message-ID: <3A79A4F2.C5307AB4@fse.ulaval.ca>
From: Christian St-Pierre <Christian.St-Pierre@fse.ulaval.ca>
X-Mailer: Mozilla 4.7 [fr] (WinNT; U)
X-Accept-Language: fr
MIME-Version: 1.0
Newsgroups: comp.lang.javascript,alive.internet.lang.javascript,alt.html.dhtml
Subject: Re: Mouse events with IE5 ???
References: <3A787A63.6A16CEDE@fse.ulaval.ca> <95a97n$c74$1@nnrp1.deja.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Lines: 49
Date: Thu, 01 Feb 2001 18:04:12 GMT
NNTP-Posting-Host: 132.203.154.197
X-Complaints-To: abuse@ulaval.ca
X-Trace: carnaval.risq.qc.ca 981050652 132.203.154.197 (Thu, 01 Feb 2001 13:04:12 EST)
NNTP-Posting-Date: Thu, 01 Feb 2001 13:04:12 EST