capt_nemo777
11-07-2008, 10:39 AM
why is my data island code not working with firefox? except for IE7 :(
here's the screenshot
http://www.freeimagehosting.net/uploads/d9a30918a4.png
and here's my code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello!</title>
</head>
<body>
<xml id="myxmldatasource">
<items>
<item id="item1">
<name>Mocah</name>
<type>Coffee</type>
<photo>photos/candles.jpg</photo>
</item>
<item id="item2">
<name>Decaf</name>
<type>Coffee</type>
<photo>photos/teacup.jpg</photo>
</item>
<item id="item3">
<name>Raspbery Zinger</name>
<type>Tea</type>
<photo>photos/teapot_white.jpg</photo>
</item>
<item id="item4">
<name>Earl Grey</name>
<type>Tea</type>
<photo>photos/teapot_bone.jpg</photo>
</item>
</items>
</xml>
<table datasrc="#myxmldatasource" border="1">
<thead>
<tr>
<th>Photo</th>
<th>Description</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img datafld="photo"/>
</td>
<td>
<span datafld="name"/>
</td>
<td>
<span datafld="type"/>
</td>
</tr>
</tbody>
</table>
</body>
</html>
here's the screenshot
http://www.freeimagehosting.net/uploads/d9a30918a4.png
and here's my code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello!</title>
</head>
<body>
<xml id="myxmldatasource">
<items>
<item id="item1">
<name>Mocah</name>
<type>Coffee</type>
<photo>photos/candles.jpg</photo>
</item>
<item id="item2">
<name>Decaf</name>
<type>Coffee</type>
<photo>photos/teacup.jpg</photo>
</item>
<item id="item3">
<name>Raspbery Zinger</name>
<type>Tea</type>
<photo>photos/teapot_white.jpg</photo>
</item>
<item id="item4">
<name>Earl Grey</name>
<type>Tea</type>
<photo>photos/teapot_bone.jpg</photo>
</item>
</items>
</xml>
<table datasrc="#myxmldatasource" border="1">
<thead>
<tr>
<th>Photo</th>
<th>Description</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img datafld="photo"/>
</td>
<td>
<span datafld="name"/>
</td>
<td>
<span datafld="type"/>
</td>
</tr>
</tbody>
</table>
</body>
</html>