Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #25816
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Shape with transparent click through |
| Date | 2014-09-03 12:40 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1613934.qtt2OqVe9m@PointedEars.de> (permalink) |
| References | <Y9mdnRhAy6jn2pvJnZ2dnUVZ_q-dnZ2d@westnet.com.au> <4867520.6Lz3d7RzCT@PointedEars.de> <xNGdnV-w_q41_JvJnZ2dnUVZ_o-dnZ2d@westnet.com.au> <1967125.rtWAkvbeG0@PointedEars.de> <dqWdnTvlMqN-45vJnZ2dnUVZ_sqdnZ2d@westnet.com.au> |
Andrew Poulos wrote:
> On 3/09/2014 11:16 AM, Thomas 'PointedEars' Lahn wrote:
>> You can draw a circle around any element with the CSS3 border-radius
>> property. However, what you are asking for does not make sense in the
>> first place. You do *not* want the clicked object react as if Help mode
^^^^^^^^^^^^^^^
>> was not enabled when it is, and you can have translucent elements. So I
^^^^^^^^^^^^^^^^^^^^^^^^^^
>> do not see the problem.
>
> Yes I do want them to react.
I have marked the important part.
> Some of the pages have a number of steps that the user needs to complete
> in order. If they do something "wrong" they get a message. If they do it
> wrong again I draw a circle around the element they are meant to react
> with.
In that case either the business logic for the Help mode belongs in the
event listener for the corresponding events for the elements in the first
place, or entering/leaving Help mode should add/remove the respective
listeners. The latter may require native support for DOM3+ Events or an
emulation thereof because order may matter.
> And I don't want to maintain multiple versions of the "same" content.
You do not have to.
> Is being able to click through a transparent area to the content behind
> too much to ask?
No, but it may be easier to place a ring marker "behind" (below, in the same
stacking context) the widget to be marked, or IOW the widget on its marker.
You will need to implement the business logic of the Help mode in any case.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Shape with transparent click through Andrew Poulos <ap_prog@hotmail.com> - 2014-09-03 08:37 +1000
Re: Shape with transparent click through Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-09-03 02:01 +0200
Re: Shape with transparent click through Andrew Poulos <ap_prog@hotmail.com> - 2014-09-03 10:29 +1000
Re: Shape with transparent click through Ed Jay <edMbj@aes-intl.com> - 2014-09-02 18:11 -0700
Re: Shape with transparent click through Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-09-03 03:28 +0200
Re: Shape with transparent click through Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-09-03 03:16 +0200
Re: Shape with transparent click through Andrew Poulos <ap_prog@hotmail.com> - 2014-09-03 12:33 +1000
Re: Shape with transparent click through "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-09-03 08:53 +0200
Re: Shape with transparent click through Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-09-03 12:40 +0200
Re: Shape with transparent click through "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-09-03 01:16 -0700
Re: Shape with transparent click through "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-09-04 02:27 +0200
Re: Shape with transparent click through "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-09-03 18:45 -0700
Re: Shape with transparent click through "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-09-04 09:37 +0200
Re: Shape with transparent click through "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-09-04 18:53 -0700
Re: Shape with transparent click through "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-09-04 12:29 +0200
csiph-web