JavaScript Event Sheets

Another little DHTML thing, although perhaps less useful than the sortable tables one; JavaScript Event Sheets. I’ve been thinking about some kind of thing like this for ages, so I coded it up; I fear that its limitations will overwhelm it, but it’s a useful little experiment if nothing else.

5 Responses to “JavaScript Event Sheets”

  1. This looks very similar to the old Action Sheets proposal that Netscape submitted to the W3C in 1998. They used XML to split the document into sections for rules and JavaScript code presumably so that you could make a selfcontained sheet with both the rules and code in one place- but the CSS-like syntax portion is very similar.

    Seriously; why hasn’t something like this become commonplace?

    Here’s the proposal that they submitted to the W3C

    Millennium
  2. Hm. I could put it in a tag with that type, and I thought about that, but I decided that it was the most hacky thing since hacks were invented ;) I might still do it anyway, not being all that averse to replacing clean neat code with hideous bodges from time to time :)

    sil
  3. I love it. It’s a shame you can’t host JSES information inline as that would solve all of the limitations at once. Maybe you could place the stylesheet information in a or tag with the type attribute set to “application/x-jses” then wrap it in a comment to prevent browsers from trying to parse it as CSS?

    Simon Willison
  4. retret

    ert
  5. zithromax azithromycin…

    news…

    zithromax azithromycin

Leave a Reply

OpenID is a decentralised authentication system. If you use LiveJournal or Vox you already have an OpenID; just use the URL of your homepage there. See also how to get yourself an OpenID.