Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/02/2011, 07:59
combuilder
 
Fecha de Ingreso: agosto-2009
Mensajes: 101
Antigüedad: 14 años, 8 meses
Puntos: 0
Respuesta: Ejemplo sencillo con jQuery y TableSort que no funciona

Pues ... no funciona! Ni siquiera es capaz de cargar data.htm!!

Aqui tienes el código
Código HTML:
<html>

<head>
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.tablesorter.min.js" type="text/javascript"></script>

    <link href="styles.css" type="text/css" rel="stylesheet">
    <link href="tablamaestra2.css" type="text/css" rel="stylesheet">
<script>

function loading(event)
{
   $("#tablamaestra").load('data.htm', function(){
       $(this).sorttable();
       $(this).trigger("update");
       $(this).trigger("appendCache");
    });
};
$(function( ){
       $("#miboton").bind("click", loading);
});

</script>

<title>Ejemplo CSS</title>

</head>

<body>

<a id="miboton">Ver 2</a>
<br>
<div id="tablamaestra2">aqui</div>


</body>

</html>