Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/10/2011, 05:42
luisgzafra
 
Fecha de Ingreso: noviembre-2010
Mensajes: 1.242
Antigüedad: 13 años, 5 meses
Puntos: 73
jquery history

Buenas, estoy intentando usar jquery history pero no consigo integrarlo:

Hay que poner
Código Javascript:
Ver original
  1. function callback(hash)
  2. {
  3.     // do stuff that loads page content based on hash variable
  4. }
  5. $(document).ready(function() {
  6.     $.history.init(callback);
  7.     $("a[@rel='history']").click(function(){
  8.         $.history.load(this.href.replace(/^.*#/, ''));
  9.         return false;
  10.     });
  11. });

según el link que dejé arriba, luego remplazo a[@rel='history'] por a para que coja todos los links y luego $.history.load(this.href.replace(/^.*#/, '')); por

$.history.loader(this.href.replace(/^.*#m=/, ''));

y no funciona, ¿que puede pasar?
__________________
:)