Foros del Web » Programando para Internet » ASP Clásico »

Paginacion en ASP con XML

Estas en el tema de Paginacion en ASP con XML en el foro de ASP Clásico en Foros del Web. Alguien sabe realizar una paginacion, con datos de un XML. Suponiendo que ya tengo el XML en alguna variable. Trabajandolo a partir de ahi....
  #1 (permalink)  
Antiguo 17/06/2003, 08:53
 
Fecha de Ingreso: junio-2003
Ubicación: Buenos Aires Capital
Mensajes: 29
Antigüedad: 21 años, 11 meses
Puntos: 0
Exclamación Paginacion en ASP con XML

Alguien sabe realizar una paginacion, con datos de un XML.
Suponiendo que ya tengo el XML en alguna variable.
Trabajandolo a partir de ahi.
  #2 (permalink)  
Antiguo 27/06/2003, 10:43
 
Fecha de Ingreso: mayo-2003
Mensajes: 5
Antigüedad: 22 años
Puntos: 0
ASP y XML

yo encontre esto una vez, a ver si te sirve:

<html>
<head>
<title>Prueba de paginación</title>
</head>

<xml id="xmlPrueba">
<LISTADO>
<REGISTRO>
<NOMBRE>Ismael</NOMBRE>
<APELLIDOS>Zori Martinez</APELLIDOS>
</REGISTRO>
<REGISTRO>
<NOMBRE>Alicia</NOMBRE>
<APELLIDOS>Campos Ortega</APELLIDOS>
</REGISTRO>
<REGISTRO>
<NOMBRE>Julio</NOMBRE>
<APELLIDOS>Camino del Bosque</APELLIDOS>
</REGISTRO>
<REGISTRO>
<NOMBRE>Juan</NOMBRE>
<APELLIDOS>Diges Sierra</APELLIDOS>
</REGISTRO>
<REGISTRO>
<NOMBRE>Roberto</NOMBRE>
<APELLIDOS>Cabeza Benito</APELLIDOS>
</REGISTRO>
<REGISTRO>
<NOMBRE>Rosa</NOMBRE>
<APELLIDOS>Jimenez Sancho</APELLIDOS>
</REGISTRO>
<REGISTRO>
<NOMBRE>Eva</NOMBRE>
<APELLIDOS>Soria del Pinar</APELLIDOS>
</REGISTRO>
<REGISTRO>
<NOMBRE>Pedro</NOMBRE>
<APELLIDOS>Zamora Reinoso</APELLIDOS>
</REGISTRO>
</LISTADO>
</xml>

<script language="JavaScript">
function go(numDonde)
{
switch (numDonde)
{
case 0:
tablaPrueba.firstPage();
break;
case 1:
tablaPrueba.previousPage();
break;
case 2:
tablaPrueba.nextPage();
break;
case 3:
tablaPrueba.lastPage();
break;
default:
alert("Opción de navegación incorrecta. Fallo de programación");
}
}
</script>

<body>
<center>
<table datasrc="#xmlPrueba" datapagesize="5" id="tablaPrueba" border="1" cellpadding="1" cellspacing="0">
<thead>
<tr>
<td align="center"><b>Nombre</b></td>
<td align="center"><b>Apellidos</b></td>
</tr>
</thead>
<tr>
<td><span datafld="NOMBRE"></span></td>
<td><span datafld="APELLIDOS"></span></td>
</tr>
</table>
<br><br>
<input type="button" name="btnPrimero" value="|<" onclick="go(0)">
<input type="button" name="btnAnterior" value="<" onclick="go(1)">
<input type="button" name="btnSiguiente" value=">" onclick="go(2)">
<input type="button" name="btnUltimo" value=">|" onclick="go(3)">
</center>
</body>
</html>


Puedes cambiar todo la parte del XML por la ruta:

<XML id="xmlPrueba" src="fichero.xml"></XML>
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta

SíEste tema le ha gustado a 1 personas




La zona horaria es GMT -6. Ahora son las 12:02.