This is as days pass by, by Stuart Langridge

And this is JavaScript Event Sheets, written , and concerning Uncategorized

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.

Comments

Millennium

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

sil

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 :)

Simon Willison

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?

ert

retret

zithromax azithromycin

zithromax azithromycin...

news...

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.