A list of puns related to "Document Object Model"
For the below code if I replace window with document it works just as well. Why use one over the other?
And am I to understand that here the DOM listens to the whole html document? And the BOM listens to the browser window like the viewport? It seems like they are the same thing.
window.addEventListener('keydown', function(event) {
...
I'd like to learn about DOM but not just by dry reading specification or MDN but with a little context about it's history, how it was developed into current state. However I found only old books on Amazon (eg. 10 years or older) so I am wondering is there any newer book on the topic that covers newer developments on the topic? If not, what old book do you recommend?
Hi, I am trying to add properties to a collection of documents.
Say I have a collection of comments and a collection of likes and I want to retrieve all of the comments, mark them as being liked or disliked by the current user, then return that information to the client. What is the best pattern to achieve something like this?
What is the best way to learn how to manipulate the DOM through JavaScript. Are there any great books or other resources out there, or maybe some great video tutorials. I have gotten some great insight through stack overflow and Google searches, but I feel like I have a lot of gaps in my understanding. Thanks.
Hello webdev lovers!
I started to work on a project and, at the end of it, I realized that I was mixing the DOM methods with JQuery a lot in my Javascript file.
For instance, some elements I accessed by DOM methods and others by JQuery. I know that JQuery requires less code, the selectors are simple and it adds more browser compatibility than the DOM but I heard that JQuery is heavy and slow.
What do you guys think?
Do any of you know interesting examples of common things that end up forming some algebraic structure? I'm thinking of things like, e.g., a group of phenomena in ecology that end up modelling Euclid's axioms, or something in day-to-day life that with some weird/clever binary operations becomes a ring, things like that?
To me, the closest thing that comes to mind when I think of this is the Curry-Howard correspondence, which allows you to think of computer programs as mathematical proofs (and, relatedly, to think of the computer language "Haskell" as a category), but I'm generally looking for less technical examples, with less technical subjects. Things that are simply clever applications of algebraic constructs to (seemingly) non-mathematical stuff.
Bonus points if it ends up being useful, shedding some light into the object at hand, or if it's simply non-trivial.
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.