August 11, 2003

JavaScript fun

JavaScript is actually pretty fun! Alan and I have been working on the .js implementation of the themes listing at Mozilla Firebird Help. We've come up with a few improvements:

  • The page now detects what version of Mozilla Firebird you're using and displays only the themes that actually works for that version.
  • The page will soon be split up into several pages because of the huge amounts of themes currently available.
  • The table of contents now truncates theme names that are longer than 20 characters, to ensure the grid layout doesn't break.

Be sure to reload the page to see the difference, as Mozilla doesn't usually check for new versions of .js files unless you force it to. Also, please note that a lot of theme preview images are still missing. This will hopefully be fixed soon.

Posted by djst at August 11, 2003 2:23 AM
Comments

Ooh, ooh, I found an error ;P

Line 641 of loadThemes.js, you have an assignment along the lines of x = 'this 'sdsd' sfsdf';

That's right, it's the old use of quotes inside a quoted string. I assume loadThemes.js is generated from a database somehow, so you can probably just modify your generation script to replace quotes with backslash quotes.

Although I think it would be a good idea to have a simple html version (in addition to a fancy js one) for visitors who disable javascript.

Posted by: Wogan at August 11, 2003 9:11 AM

You scroll down for the simple version :)

Bravo! Very nice indeed.

Posted by: AndyEd at August 11, 2003 2:38 PM

It looks like the issue above has been fixed now.

My point with the simple version was that you get no list at all if you disable javascript. But then I guess it's impossible to install them anyway without javascript (isn't it?), so whats the point.

Posted by: Wogan at August 11, 2003 4:17 PM

We'll be moving to php based after I update the backend, probably next weekend. Then people can save them, even if they have javascript disabled.

By the way, djst, does your form check to see if javascript is enabled? Probably not. Consider this an RFE ;-)

Posted by: alanjstr at August 11, 2003 4:45 PM

Hey David,

Your blog now scrolls much slower than, say Firebird help. Is that intended?

Posted by: vfwlkr at August 16, 2003 11:30 AM