[Laszlo-dev] image loading in safari 2
Benjamin Shine
ben at laszlosystems.com
Mon Jul 9 17:04:16 PDT 2007
I'm not sure whether this counts as a bug or not, but... a databound
attribute with weird html escapes in it works as a view's source in
DHTML/Firefox, swf, and Safari 3/ WebKit, but does not work in Safari 2.
This behavior means that images don't load in NewsMatch in Safari 2.
Here's a simple test example; it should load two images, one of a
fish and one of a macbook, but on Safari 2, it only loads the image
of the macbook, no fish. Is this a bug?
<canvas>
<dataset name="fakedata">
<item>
<content url="http://d.yimg.com/us.yimg.com/p/ap/
20070701/capt.sel10307010747.south_korea_surfing_sel103.jpg?
x=130&y=95&sig=CO7CdVZgpgHiRUiYFG1V.g--" type="image/jpeg"
height="95" width="130"/>
</item>
</dataset>
<dataset name="moredata">
<item>
<content url="http://images.apple.com/startpage/images/
promomacbookpro_20070611.jpg" />
</item>
</dataset>
<view id="v3" x="0" y="0" bgcolor="0x338899" width="210"
height="70" datapath="fakedata:/item">
<view name="thumbnail" width="50" height="50"
bgcolor="0xAA3399" />
<attribute name="urlText" type="string" value="$path
{'content/@url'}"/>
<method event="oninit">
this.thumbnail.setSource(this.urlText);
</method>
</view>
<view id="v4" x="0" y="130" bgcolor="0x338899" width="210"
height="70" datapath="moredata:/item">
<view name="thumbnail" width="50" height="50"
bgcolor="0xAA3399" />
<attribute name="urlText" type="string" value="$path
{'content/@url'}"/>
<method event="oninit">
this.thumbnail.setSource(this.urlText);
</method>
</view>
</canvas>
More information about the Laszlo-dev
mailing list