All Questions
57 questions
2
votes
1
answer
173
views
Creating object in JS that is passed into IHttpHandler
I am working on a web page where I am creating a JS object using {} and []. This object is passed into a handler
I wanted to ...
2
votes
2
answers
79
views
How can I simplify this JQuery validation process?
How can I simplify this functioning JQuery validation process:
...
3
votes
0
answers
202
views
Dynamic Bootstrap 4 modal using JavaScript OOP
I have created dynamic Bootstrap 4 modal using JavaScript OOP. Please verify and give your reviews how I can improve the code. I have passed four parameters to create a dynamic modal:
...
1
vote
1
answer
1k
views
Display Object as a node tree in HTML with clickable trace back to root node
I was given the following code and instructions for a technical test for a potential technical role I had applied for:
...
6
votes
2
answers
552
views
Soccer field map creator
I am fairly new to OOP and am working on a little website project to practice. I wanted to post after getting the initial setup done in case I am making any major errors or not following best ...
2
votes
0
answers
51
views
Event handler re-use in Javascript
I've been trying to deal with a lot of duplicate code in the first web pages I've been working on and have been playing around with the prototype model, which I think is the 'right' way to go about it....
5
votes
1
answer
78
views
My simple jQuery website returns JSON data from two different servers
I'm looking advice from more experienced people about how I can improve my code. I also want to make my code object-oriented (create classes in separate .js files) but I don't how best to do it.
How ...
1
vote
1
answer
74
views
Objects using jQuery to maintain a playlist of shows
This is my first attempt at using OOP JavaScript in my work. I know the concepts but implementation is more complicated than I thought. Now the code is a mixture of several things (JavaScript/jQuery). ...
2
votes
3
answers
260
views
jQuery plugin to highlight text spans in various colors
I am trying to tackle two fairly massive concepts through JavaScript and jQuery, the first being object-oriented programming and the second being how to build robust modular plugins with an OOP ...
6
votes
1
answer
2k
views
Simple Blackjack game using JavaScript and jQuery
For my first JavaScript/jQuery project, I made a simple Blackjack game. However, I would like to have a more object oriented approach. I would truly appreciate it if someone can review my code and ...
0
votes
1
answer
91
views
JavaScript events architecture [closed]
I have made one architecture on my project and want to know. Is it good or bad?
...
3
votes
0
answers
148
views
jQuery modal dialog plugin
I'm working on creating a new jQuery modal plugin. I'm pretty good at jQuery but still pretty new to the whole object oriented plug-and-play style of plugins so I used a different plugin I found ...
3
votes
0
answers
143
views
jQuery form change listener, modularized using ES6
I have the following javascript code that I'm trying to modularize using ES6:
...
3
votes
1
answer
64
views
OOP and non-OOP versions of layout and page animation code
I am trying to learn how to write more object oriented javascript code, but I am having a hard time understanding the correct way to do it, and how it is useful for front end development. As you can ...
3
votes
1
answer
90
views
Stock performance app
I'm building an app that tells you a stock's percentage change in price between two dates by using Yahoo's API. Given a stock ticker and two dates, it currently outputs the percentage return to the ...