Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #37641

Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas"

Newsgroups comp.lang.javascript
Subject Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas"
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <2bf7ea7f-dc81-4f4a-aa0b-f34dfe3ebc1e@googlegroups.com> <XnsAAF76CE10FEB0eejj99@194.109.6.166> <d12b87a5-fecc-4d3f-adb7-a3ab97a7a33e@googlegroups.com> <XnsAAF775621EC6Deejj99@194.109.6.166> <2112f7df-3433-4721-a6dd-c06dce8a5849@googlegroups.com>
Date 2019-10-29 23:11 +0100
Message-ID <XnsAAF7EBDDE68DCeejj99@194.109.6.166> (permalink)

Show all headers | View raw


=?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 29
Oct 2019 in comp.lang.javascript: 

> I thought that when you refered to something by get elementById it was
> part of HTML DOM-object. 

You did, I didn't.

> Well i tried to add the listener to ctm first but it said not defined,

You can only add a listener to a/some DOM element, so you can first use the 
debugger to see if ctm points to the element you think it points to.

> although it just was defined right above the code that added the
> listener.

If it says "not defined" I would assume it was not defined,
so do some testing. 

===========

Perhaps some DOM-elements do not allow a listener.

I can imagine <br> doesn't and <title></title> doesn't,
but <script> could. Maybe that is even implmentation-dependent.


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-29 02:18 -0700
  Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-10-29 10:42 +0100
    Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-29 03:07 -0700
      Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-10-29 11:32 +0100
        Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-29 06:10 -0700
          Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-10-29 23:11 +0100
            Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-29 23:18 -0700
              Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" luserdroog <luser.droog@gmail.com> - 2019-10-30 00:10 -0700
                Re: Where does it make sense to put the mouseOver "canvas" mouseOut "canvas" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-30 01:01 -0700

csiph-web