CSS-style DHTML selectors

Written December 3. 2003, at 13:30 GMT.

Recently I've been playing around with unobtrusive javascript for some projects at work. Amongst other things, I've come up with an unobtrusive way to make selected links open in popup-windows and unobtrusive universally accessible DHTML pulldown-lists.

Surfing this morning I came across Simon Willison's getElementsBySelector allows one to use CSS-style selectors to address objects in a DOM tree. Sooo sweet!

I wonder what licencing terms Simon has in mind for this code. Is it available under an open-source style licence?


More like this: English Entries, .


Reader Comments (7)

  1. Sindri replies:

    Javascripts on webpages kind of automaticly become open source since by using them on you web page you publish the source.

    PS. You forgot to close a <i> tag.

    December 3. 2003 kl. 14:07 GMT | #

  2. Már Örlygsson replies:

    The javascript is Simon's copyrighted work, so even if the source is "in the open", that does not automatically make it "open source" in terms of licencing and derivative works.

    I fixed the <em> that I left wide open. Thanks.

    December 3. 2003 kl. 14:17 GMT | #

  3. Sindri replies:

    My understanding of the terms "open source" vs. "closed source" is that they only refer to weather the source is distributed with the software or not.

    An "open source licence" however is a licence term that ensures the software is always open source.

    My point was that regardless of the licence javascripts are always "open source".

    (BTW. I get the feeling from Simon Willison's page that he isn't expecting to be making any sort of profit from this, thus didn't bother to put any sort of licence note into the code.)

    December 3. 2003 kl. 15:10 GMT | #

  4. Már Örlygsson replies:

    Which was the point of my question - whether or not the code was available "under an open-source style licence" . The code was obviously there, but the legality of me using it "as is" was not so obvious. :-)

    The point is that I'd like to use Simon's function in some of my unobtrusive javascripts to make them smaller and more human-readable.

    I've sent him e-mail about this.

    December 3. 2003 kl. 15:29 GMT | #

  5. Már Örlygsson replies:

    There's "an open source" and then there's "open source"

    • http://opensource.org/docs/definition.php
    • http://opensource.org/trademarks/

    But I guess any sort of freeware licence would suit me fine. :-)

    December 3. 2003 kl. 15:32 GMT | #

  6. Simon Willison replies:

    I'm really bad when it comes to licensing things - I keep forgetting to do it! Please consider it open source, under the least restrictive license you can think of. It's free for commercial use, free for personal use, all I ask is that you don't pretend you wrote it and earn millions and millions of dollars - or if you do, send me some :)

    December 4. 2003 kl. 05:01 GMT | #

  7. Már Örlygsson replies:

    Simon, we have a deal! ;-) I'm all for unrestricted licences myself, but I'm very keen on having people ask permission and giving full credit where credit is due.

    Thanks!

    December 4. 2003 kl. 09:03 GMT | #

Ţessum svarhala hefur veriđ lokađ. Kćrar ţakkir til ţeirra sem tóku ţátt í umrćđunni.


 

Flakk um vefsvćđiđ



 

Nýleg svör frá lesendum

  • Rich (Req.js - javascript lazy-loading and dependency managment made easy)
  • Rich (Req.js - javascript lazy-loading and dependency managment made easy)
  • Rich (Req.js - javascript lazy-loading and dependency managment made easy)
  • Már (Req.js - javascript lazy-loading and dependency managment made easy)
  • Rich (Req.js - javascript lazy-loading and dependency managment made easy)
  • Már (Req.js - javascript lazy-loading and dependency managment made easy)
  • Dinesh (Req.js - javascript lazy-loading and dependency managment made easy)
  • Már (Taubleyjur í nútímanum - lítill leiđarvísir handa hrćddri ţjóđ)
  • Ada (Taubleyjur í nútímanum - lítill leiđarvísir handa hrćddri ţjóđ)
  • notandi (Taubleyjur í nútímanum - lítill leiđarvísir handa hrćddri ţjóđ)
  • Geir (Lausnin á efnahagsvandanum)
  • Jenný (Lausnin á efnahagsvandanum)
  • Óli Jens (Lausnin á efnahagsvandanum)
  • Már (Lausnin á efnahagsvandanum)
  • Kjartan S (Lausnin á efnahagsvandanum)

 

 

Yfirlit yfir ţetta skjal

(Atriđin í listanum vísa á ákveđna kafla ofar á síđunni.)