Earlier quoted context omitted.
I might be wrong but I believe some parts of the JS community resent jQuery's ubiquity (which has arguably reached the point where people think jQuery is javascript). That people are now taking the time to create pure JS solutions is nothing but a good thing, and there's certainly no reason why people should have to depend on a third party library if they don't want to. Finally, your latter point about filesize is a…
If you use 1 JS script on your site, i'll agree. What happens when you include 3 of these though? 10? 15? Suddenly you have tons of duplicate code, trying to implement getAttribute across browsers...wouldn't it be better if they all used the same DOM abstraction library...if only something like that existed...
List.js
81–90 of 90 posts
Re: List.js
#82Why do so many JS mini-libraries expect an ID or a CSS selector? Why not accept an element too, which lets you augment anything ? Seriously, you're just crippling your library, and adding complexity by not accepting elements.
But one point with only allowing id i.e is consistency.
Re: List.js
#83Re: List.js
#84perfect, and just in time. I'll be announcing my own project here on HN in a week or two, and List.js will most certainly be taking a very central role. So nice work, and thanks.
Re: List.js
#85Is there a similar library that can be used with tables? I like the function and this looks easy to use but my site uses tables over lists.
Everything is created dynamically. The js that creates the demo is
userList = new QCSmartList({
dataUrl: 'users.json',
columns: [
{field:'email'},
{field:'surname'},
{field:'firstname', header:'Name'},
{field:'points'}
],
containerId: 'user-list',
name: 'users',
varName: 'userList'
});
If anyone's interested I can try and get some updated code/demo up later on today (it's only morning here)Re: List.js
#86Earlier quoted context omitted.
The screenshot is of an older version of HN. pg, Did the change occur as a result of showing up on Contrast Rebellion? There's a fair amount of merit to downvoted comments having their contrast lowered.
I hate that, personally. I don't always have to agree with whoever downvoted, or sometimes I'm just curious about what it said. Especially the lowest contrast, after several downvotes, that's just stupid, because it's pretty much unreadable unless you select the text. So you know there's text, but you can't really read it, then why show it at all?
Re: List.js
#87Re: List.js
#88Is there a neat collection of all these javascript libraries out there? I'm sure there are tons of awesome libraries I don't know about.
Re: List.js
#89Earlier quoted context omitted.
I might be wrong but I believe some parts of the JS community resent jQuery's ubiquity (which has arguably reached the point where people think jQuery is javascript). That people are now taking the time to create pure JS solutions is nothing but a good thing, and there's certainly no reason why people should have to depend on a third party library if they don't want to. Finally, your latter point about filesize is a…
If you use 1 JS script on your site, i'll agree. What happens when you include 3 of these though? 10? 15? Suddenly you have tons of duplicate code, trying to implement getAttribute across browsers...wouldn't it be better if they all used the same DOM abstraction library...if only something like that existed...
The main drawback is that it doesn't help people learn Javascript at all. And then it's hard to get information and help with JS because practically every result returns a jQuery plugin or something that uses jQuery. And as a result of that people think, "oh, I need jQuery installed to do some javascript on my site." And then other people complain, "this script isn't jQuery I can't-" ... oh.
Wouldn't it actually be better if JS implementations were actually standardised so its behaviour across browsers was totally predictable and reliable?
> redefines a bunch of jQuery functions
Just clocked this. jQuery redefines more than just a bunch of javascript functions as well as then redefining its own. It's a bit of a mess.
Re: List.js
#90Earlier quoted context omitted.
If you use 1 JS script on your site, i'll agree. What happens when you include 3 of these though? 10? 15? Suddenly you have tons of duplicate code, trying to implement getAttribute across browsers...wouldn't it be better if they all used the same DOM abstraction library...if only something like that existed...
Helping jQuery monopolise the JS space even further doesn't strike me as a good idea or beneficial to the community at large. The main drawback is that it doesn't help people learn Javascript at all. And then it's hard to get information and help with JS because practically every result returns a jQuery plugin or something that uses jQuery. And as a result of that people think, "oh, I need jQuery installed to do some…
It would also be way better for developers if all computers had infinite memory.
It's just not in the cards though.
jQuery standardizes the mess that is JavaScript implementations so that developers can worry about their application instead of the browser. I don't think you should lament jQuery for being so popular, you should lament browser manufacturers (ahem, Microsoft) and the W3C for not creating and following good JavaScript specifications.
That's like blaming Dennis Ritchie for killing the Assembly community.