User login

JavaScript

Raphael – Introduction by

Raphael: vector graphics.

Browser support for everything from IE6 (really) to Android (post Honeycomb).

20kb gzipped Javascript.

Completely different thing from HTML5 <canvas>.

Raphael has a low z-index, other things will appear in front of it, by default.

Can select by ID.

Can even use the JQuery selector.

Fonts

Can get fonts with Cufon. [Hmm. I think i'd avoid putting any fonts in here, a drawing program, and avoid Cufon in favor of @fontface anyway.)

CSS and JavaScript aggregation in Drupal 7

stefan:h ave you noticed that javascript and css aggregation does not work as expected on dgd7.org.
17:28 mlncn: how do you expect it to work? they changed it in D7, mostly for the better
17:28 stefan-agaric: there's 3 css and 2 js that seems to be created by it.
17:28 mlncn: there's more files, but they aren't recreated as often
17:28 stefan-agaric: what's the point?
17:29 mlncn: or rather, i should say, there's more files per page but fewer files when browsing around the site
17:29 stefan-agaric: we only need one.

Bringing Modern CSS to Internet Explorer

http://selectivizr.com/

CSS3 selectors for IE

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8. Simply include the script in your pages and selectivizr will do the rest.

http://css3pie.com

PIE makes Internet Explorer 6-8 capable of rendering several of the most useful CSS3 decoration features.

Drupal adds class js to html tag when JavaScript is enabled

texas-bronius: What's the best way to provide css for non-js-enabled browsers that differs for css for js-enabled?
17:13 texas-bronius: hi benjamin-agaric welcome back
17:15 benjamin-agaric: texas-bronius: hi. Assign the classes themselves with JavaScript?
17:15 texas-bronius: benjamin-agaric: duh. Yes, good idea thanks. Class name could be "hasjs" or something.

JQuery select elements without a given class or ID

Anywhere you can use .classnamehere as a Jquery selector, you can use:

:not(.classnamehere)

TinyMCE, iFrames, JQuery and Drupal scattered notes

Drag and drop into the TinyMCE textarea triggers onEvent twice in such close succession that it creates a race condition, and the same values for the length of the textarea before and after are given.

Getting around this by putting the character change check new value set before running the code. Maybe a timer check, or ideally a way to check the textarea with just a timer and not use onEvent at all, would be best.

Syndicate content