Planning your DOM Event Targets

  Рет қаралды 5,668

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

Күн бұрын

Пікірлер: 16
@jonathanr7906
@jonathanr7906 3 жыл бұрын
From your comment in the comment field I take it you are a professional teacher. That really shows. First tutorial on the subject with a great structure and clear learning goal rather than a bunch of: oh, i forgot to show u guys you can do this and then that stuff is also pretty cool. Great vid.
@iwswordpress
@iwswordpress 5 жыл бұрын
This is a very useful video as this type of process is very frequent. Very well explained and thanks for adding code link.
@vrk4052
@vrk4052 3 жыл бұрын
Very underrated video on a very important topic , thanks for the clear explanation!
@enfieldli9296
@enfieldli9296 3 жыл бұрын
Oh boy, that's a lot to take in, and still grateful of your work on this fantastic series!
@steviewonder580
@steviewonder580 4 жыл бұрын
Very peculiar content you have i haven't seen such tutorials anywhere... well done!
@NedumEze
@NedumEze 2 жыл бұрын
Thank you so very much again, Prof. But, please, how different will this fine approach be, if you have several of the s containing identical tags and attributes? The s may have some differentiating attributes. I have several video elements on same page, I want to toggle the volume button from full volume to mute button and vice versa. How should the Listener be best set up? Button is like your , & the or < i> is the volume icon. All inside a like your . ..... . . . ..... . . .
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 2 жыл бұрын
It's hard for me to say what is the best solution, while not knowing exactly what you are building or how all your html is structured. You can add a click listener on each button if you want. You can add a single click listener on the body element if you want. As long as there is something unique about each button that lets you determine what was clicked.
@NedumEze
@NedumEze 2 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 Thanks a lot, Prof. I adapted your approach. And, it has worked in toggling Volume Icons. Though still trying to kill off a bug in it. What I am building is Video Gallery. Not Video Playlist. But each Video file in its own Video Element/widget with own Custom Controls. All Widgets to be run on the same Script. It had been difficult for me to figure out a way, efficient or not, to click play and play the Video in a particular widget. To Have the Duration for each Video displayed on page load, etc. But, when I saw you guide, it was Kicker. Still feeling my way through your guide. I believe that if I can fully understand your approach, I should be able to build it. But, if there's a way that I can send my html to you, I'll be extremely grateful to do so.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 2 жыл бұрын
@@NedumEze Sorry. I don't have time to review people's code or projects.
@NedumEze
@NedumEze 2 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 It's okay Prof. I understand. Thanks for the help still.
@NedumEze
@NedumEze 3 жыл бұрын
I have 2 video players on the same page, to share one Script. Both have Custom Controls. How best to set up the click event on either Playback button? Or, should each Video element have its own Script?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
If they are playing in different browsers then they are running their own copy of the script. One mouse or trackpad means only one click possible at a time and you can set it up any way you want.
@Pokemonman44441
@Pokemonman44441 2 жыл бұрын
Damn this can really confuse someone new to the web industry
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 2 жыл бұрын
Works hand in hand with event bubbling - kzbin.info/www/bejne/gIrGaJqobqqbopI - which I teach before this topic.
Removing Event Listeners
8:25
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 15 М.
JS Code Structure Moving Beyond Beginner
21:31
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 14 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Do you know the difference between target vs. currentTarget?
8:25
Coding in Public
Рет қаралды 6 М.
Download Progress Monitoring with SVG Animation
32:14
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 1,6 М.
Introduction to JavaScript Event Listeners
22:07
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 72 М.
Creating and Dispatching Custom JS Events
12:28
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 20 М.
Custom Events Dispatched from Web Components
20:32
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 2,6 М.
Learn JavaScript Event Listeners In 18 Minutes
18:03
Web Dev Simplified
Рет қаралды 604 М.
Callbacks in JavaScript Explained!
14:03
Code with Ania Kubów
Рет қаралды 155 М.
DOM Element matches and closest methods
12:01
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 7 М.
Revealing the Differences between HTML Dialogs and the Popover API
24:14
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 10 М.