"Martin Honnen" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>> . . .  There should be a "gutter" between the image and the text, and 
>> there is initially and very briefly with Firefox, but then the text jumps 
>> to the left and the gutter is obliterated (yet persists nicely with IE 
>> and Opera).
>
> I have checked the layout with DOM inspector and there is a table row with 
> three cells, the space between the left cell (with the image link) and the 
> right cell (with the text) is supposed to be created by a spacer image in 
> the middle cell <http://www.macridesweb.com/images/spacer.gif> but that 
> image is not on your server, it gives a 404.
> That explains the difference you see between the Apple example and your 
> attempt to copy it.

Martin,

Thanks for the diagnosis!

The Apple developer's site has a link for downloading that file set as 
xmlhttprequest.dmg and encourages developers to play with it on their own 
servers.  All of the "displaying" images have complete URLs in their src 
attribute values, pointing to the images at Apple's site.  I changed those 
partial URLs for the transparent spacer gifs into complete URLs as well, so 
that the file set is now really portable across servers as the one .html and 
four .xml files.  Is there a simple way to determine in Firefox that 404's 
(or other errors) are being returned for such objects, short of manually 
sending out requests for the complete URLs?

So this really is a layout issue.  The XML files fetched via the responseXML 
of the XMLHttpRequest object include "plain Jane" HTML tables (marked as 
<![CDATA[  . . .  ]]> in the "Content-Type: text/xml" transmission), and 
those use <td width="10"><img width="10"  . . .  spacer.gif></td> blocks 
intended to create the 10px "gutter" between the "displaying" image on the 
left and the text on the right.  Both IE and Opera respect the width 
attribute in the td start tag if the td cell is empty, and thus don't care 
if the transparent spacer gif gets loaded, but in contrast Firefox initially 
creates the 10px "gutter" based on the td start tag's width attribute, then 
jumps to the left and obliterates the gutter when it gets the 404 for the 
transparent spacer image.

It's all coming back to me now. . .  This is a throwback to the original 
Netscape days when we first started using table markup simply as a layout 
mechanism, and would gob up our tables with lots of transparent gifs to make 
the original Netscape respect our wishes.  What with all the wonderfulness 
now in Firefox, can't this "antique inadequacy" relative to all the other 
browsers finally be remedied?  (Respect the width attribute of the td start 
tag as a minimum display width even if the cell is empty!!!  :<)  :<)

Fote
-- 
 


_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to