Problema para ver imagen
Publicado por Juan Carlos (1 intervención) el 26/03/2011 08:47:41
He creado un archivo xml, importandole los datos de una DB con unprograma en php, pero no logro ver las imágenes, si el resto de la información.
Podría ayudarme alguien, muchas gracias.
Este es el codigo generado.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var curso = new Spry.Data.XMLDataSet("datos.xml", "tcursos/cursos");
curso.setColumnType("precio", "number");
//-->
</script>
<style type="text/css">
<!--
.par {
background-color: #06C;
}
.impar {
background-color: #69C;
}
.activo {
color: #FF0;
background-color: #036;
}
.sobre {
background-color: #099;
color: #C00;
font-weight: bold;
}
-->
</style>
</head>
<body>
<div spry:region="curso">
<table width="90%" align="center">
<tr>
<th>Imagen</th>
<th spry:sort="nombre"><a href="#">Nombre</a></th>
<th>Detalle</th>
<th spry:sort="precio"><a href="#">Precio</a></th>
</tr>
<tr spry:repeat="curso" spry:odd="impar" spry:even="par" spry:hover="sobre" spry:select="activo">
<td><img src="imagenes/peques/{imagen}" /></td>
<td>{nombre}</td>
<td>{detalle}</td>
<td>{precio}</td>
</tr>
</table>
</div>
</body>
</html>
Podría ayudarme alguien, muchas gracias.
Este es el codigo generado.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var curso = new Spry.Data.XMLDataSet("datos.xml", "tcursos/cursos");
curso.setColumnType("precio", "number");
//-->
</script>
<style type="text/css">
<!--
.par {
background-color: #06C;
}
.impar {
background-color: #69C;
}
.activo {
color: #FF0;
background-color: #036;
}
.sobre {
background-color: #099;
color: #C00;
font-weight: bold;
}
-->
</style>
</head>
<body>
<div spry:region="curso">
<table width="90%" align="center">
<tr>
<th>Imagen</th>
<th spry:sort="nombre"><a href="#">Nombre</a></th>
<th>Detalle</th>
<th spry:sort="precio"><a href="#">Precio</a></th>
</tr>
<tr spry:repeat="curso" spry:odd="impar" spry:even="par" spry:hover="sobre" spry:select="activo">
<td><img src="imagenes/peques/{imagen}" /></td>
<td>{nombre}</td>
<td>{detalle}</td>
<td>{precio}</td>
</tr>
</table>
</div>
</body>
</html>
Valora esta pregunta


0