mnot’s blog

Design depends largely on constraints.” — Charles Eames

Thursday, 28 September 2006

Javascript Updates

I’ve updated the url_template.js and json_form.js libraries to fix some bugs, to make the demo I gave at XTech run more smoothly. It should work well on Safari, Mozilla and IE6 (despite some glitches at a showing inside Y! the other day; the demo gods were not smiling). It does not work in Opera; it seems like the more I use XHR in that browser, the more bugs I find. I’m thinking of updating the XHR tests to catch more of them, but it’s a fair amount of work.

The next step for HInclude and URL Templating is doing the magic earlier; right now, they wait for the onload() event, which doesn’t fire until after all of the document as well as images and the like are loaded. There are folks working on solutions to this, but in my testing, those approaches still buggy (and comments on many of the relevant blog entries being closed doesn’t help).

One other thing. I got my copy of the new revision of the venerable O’Reilly JavaScript book; it’s a gem, with substantial new sections on client-side JS, including XmlHttpRequest. A definite buy.


Filed under: Web

3 Comments

dbt said:

the doc page for json_form.js is missing....

Friday, September 29 2006 at 8:17 AM +10:00

Dean Edwards said:

I've reopened comments on my onload solution.

Saturday, September 30 2006 at 5:03 AM +10:00

Nicolas Mendoza said:

Dude, what are the Opera bugs?

If you have filed them what are the bug numbers?

If you haven't, please take some minutes to file the bugs at http://bugs.opera.com/wizard

Thanks ;)

Saturday, September 30 2006 at 8:12 AM +10:00

Creative Commons