Ramblings

Archive for the ‘web’ Category

02 Dec, 2008

The “A” stands for Asynchronous

Posted by: Matt Williams In: javascript| web

So, I have a piece of code which goes out and updates a list.  I’m using Ajax.Updater from Prototype.js, to get data back from the server. In my javascript, however, I’m immediately after kicking off the Ajax.Updater, doing processing based on the results from the update. And they’re out of sync, of course.
It [...]

28 Aug, 2008

CSS “width” gotcha

Posted by: Matt Williams In: css| gotchas| web| web design

I found out something interesting today.  Per the W3C, the total “width” that a block element uses is:
If ‘left’ or ‘right’ are given as ‘auto’, their computed value is 0. The following constraints must hold between the other properties:
‘margin-left’ + ‘border-left-width’ + ‘padding-left’ + ‘width’ + ‘padding-right’ + ‘border-right-width’ + ‘margin-right’ = width of containing [...]

Tags: ,

13 Aug, 2008

Drag-n-drop

Posted by: Matt Williams In: javascript| web

Despite reports to the contrary, scriptaculous sortables do not work inside a table, nor a tbody. (as of rails 2.1)


Categories

DrakNet Web Hosting