All Questions
Tagged with javascript event-handling
221
questions
37
votes
5
answers
3k
views
When "How To Ask" is too subtle
This is the first JavaScript code I've ever written, alert("hello, world!"); aside.
This site is closing quite a lot of questions because people won't read the ...
14
votes
3
answers
5k
views
Simple event management system
In an effort to rid my code of jQuery, I wrote a custom global event management/handling system. I was expecting this to be hard as, from what I've read, most people don't create their own. It's far ...
14
votes
1
answer
35k
views
Click event function that checks to see if form field is valid
What I'm building is a URL builder. A marketing person inputs a URL and can test that URL to see if it's valid, then they select a demand channel and then hit 'Generate Campaign URL'. I've omitted the ...
12
votes
1
answer
468
views
Resizable containers with VueJS
A month ago I reviewed the code in Resizable split DIVs Vue.js, suggesting that the OP use computed properties and bound styles to simplify the code (at least reducing the need to use ...
9
votes
2
answers
711
views
Animated Calendar using HTML + CSS + JS
I'm a beginner developer and I'm building a calendar for smartphones. I'm using HTML, CSS and JS. I'm not entirely done with the project yet, however, I have the feeling that I'm making a messy code. ...
9
votes
2
answers
519
views
Flex panels in CSS and JS
I was following Wes Bos JS 30-day challenge, so HTML and CSS are mostly are copy-paste,
I'd like feedback on JS (mostly).
Thanks.
...
9
votes
2
answers
5k
views
"Block a website" script with vanilla JavaScript
I use this script to block access to a one or more websites with vanilla JavaScript. I find that it helps me avoid some addictive news websites that make me depressed. (Credit to Marat Tanalin for ...
9
votes
3
answers
796
views
Carousel in Vanilla JavaScript
I finally got my carousel to work in JavaScript, and I want to know what you guys think about it and what I can do better.
...
9
votes
2
answers
130
views
User-focused timeline logging
I'm working on a small piece of my personal website. I'd like a timeline logging all of my relevant achievements in my career in Computer Science, in general. I'd like to implement a feature that ...
9
votes
2
answers
3k
views
Recorder for keyboard and mouse events
I'm building an event recorder. So far the code looks clean, but I feel like I'm missing something that can make this code even better.
Is composition a better solution? If yes, how can I do it ...
8
votes
3
answers
811
views
Fourteen buttons with hover effects
I have just started learning coding and am trying to clean up a website that I am making. Everything is functional, but I imagine there is a better way write everything that is there, because a good ...
8
votes
3
answers
2k
views
Mask latitude text field
I have an input element on one of the pages. This input is supposed to take a string of digits from a user. In order to enhance UX I'd like to mask input's value at any given time. Like so:
What came ...
8
votes
1
answer
4k
views
"Function Buffer" to avoid triggering an event handler too frequently
If some big event handler is triggered too frequently, it will cause computer lagging.
In my example $(window).resize(), I want the function to be called after the ...
8
votes
2
answers
344
views
Vanilla Javascript: Chained AJAX request
I'd be grateful for a review of my AJAX request. If I have taken the correct approach here and especially any security concerns!
I am creating a Purchase Order system for my manager (as part of an ...
8
votes
2
answers
2k
views
Javascript typehead using debounce
This is the code I wrote for making a JavaScript typeahead/autocomplete, which displays cities based on the user input.
It would be great if you could suggest some improvements on the code quality.
...