Filed under: iLife, Internet, Internet Tools, Developer
Take back your iWeb galleries in Firefox 3

Joshua says that the problem is neither with Apple nor Mozilla, but with a JavaScript library called "Prototype" which is used by iWeb. Right now there are two ways to fix the problem (neither of which are supported by Apple): you can use the information on Apple's Discussion Board, or you can download Joshua's script -- both seem to work and are free.
[via ArsTechnica]
Get a WordPress.com Blog
![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)


Reader Comments (Page 1 of 1)
Joshua Ochs said 1:36PM on 6-23-2008
Note that I didn't create the actual Javascript patches to Prototype that fix this, so any issues with that I can't help with. I just took the fix and made it point-and-click until Apple releases an iWeb 2.0.4 (as they surely will).
Hope this helps people!
Reply
CaptSaltyJack said 1:50PM on 6-23-2008
iDisk is also broken. Not quite Firefox's fault, but Apple's. Rather than this proper syntax:
They do this:
which is incorrect. iDisk comes up as a blank web page in Firefox 3. Serious issue, as far as I'm concerned.
Reply
CaptSaltyJack said 1:52PM on 6-23-2008
Woops, HTML was stripped. (replace brackets with angle brackets)
Proper syntax is [script type="text/javascript" src="file.js"][/script]
Apple does this: [script type="text/javascript" src="file.js" /]
which is incorrect.
Tony said 1:57PM on 6-23-2008
Interesting - IE7 will barf on script tags like that as well (unless you're using XHTML doctypes of course, in which case it's entirely legal). Looks like apple only tested on Safari.
Jonathan Wise said 3:00PM on 6-23-2008
curious...
why is [script .../] not valid, while [script][/script] is?
syntactically, they both mean the same thing, and since the script tag contains no element children (only attributes) a self-closing tag should be equally (or more) valid...
CaptSaltyJack said 3:10PM on 6-23-2008
Not quite sure, Jonathan. Maybe an oversight in the XHTML spec? You could argue that tags like IMG, BR, HR can use the [TAG /] format because they never have child elements inside them. Since SCRIPT can have content inside it, it must always be closed with [/SCRIPT] even if that content is empty.
[SCRIPT /] is invalid for the same reason [TEXTAREA /] would be invalid.
James said 9:44PM on 6-23-2008
A quick look at the specifications shows that it's an oversight of the developers and testers. The script element is defined as a non-empty element in the DTD, and so it requires an end tag. IE7 enforces this correctly. It looks like Firefox and Safari didn't/don't.
XHTML 1.0
4.3. For non-empty elements, end tags are required
http://www.w3.org/TR/xhtml1/#h-4.3
HTML 4
18.2.1 The SCRIPT element
http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.1
Tony said 1:53PM on 6-23-2008
Reading the apple thread makes it clear that this fix does not in fact work for most people.
Reply
mark freeman said 6:40PM on 6-23-2008
It does actually, its just some people don't realise you still have to make a slight change to the main gallery, like add a full stop, so the main gallery turns red. Publish it and its all back!
Arjun Saha said 4:45PM on 6-23-2008
Yupp it doesn't find the HeaderControls.js file in the HeaderControls.iwdgt folder!
Reply
Jim said 5:59PM on 6-23-2008
Unable to download and install patch; "error finding replacement files."
Reply
mettmann said 7:20PM on 6-23-2008
same issue here - "error finding replacement files."
Joshua Ochs said 11:44PM on 6-23-2008
My apologies. I pushed a new version that locates iWeb in its default location (trying to make it even simpler).... and instead I broke it. Missed a slash in a bad spot. A fixed version is due on MacUpdate as soon as they approve the submission.
nilusworld said 12:33AM on 6-25-2008
wow ... just noticed it is albums and pictures galleries not working. Any fix out there?
Reply
Kevin Sorensen said 6:03AM on 6-24-2008
I'm not sure what the hub-bub is all about. Either that, or someone snuck into my house and added this script without me knowing about it. I upgraded to Firefox 3 last week as soon as it came out. When I read this post today, I thought, well, let's check this out. I went to my galleries and wouldn't you know it: there they are, just as nice as they are in Safari 3. Sometimes, my Macs are just too amazing - they healed themselves before they even knew they were sick!
Reply
mac_fanatic said 12:30PM on 7-11-2008
Will iWeb pages still work in Firefox 2 after the patch?
Reply