Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/06/2011, 16:54
htorohn
 
Fecha de Ingreso: junio-2011
Mensajes: 2
Antigüedad: 12 años, 10 meses
Puntos: 0
Pregunta Error con metodo de Jquery

Tengo un codigo para la creacion de comentarios tipo Google Wave, el cual me ha funcionado bastante bien en todos los exploradores. Pero con la ultima version de Google Chrome me da un error (el cual no me daba con versiones anteriores de Chrome).

Uncaught TypeError: Object #<Object> has no method 'slider'

El codigo es el siguiente:

En el archivo articulo.php tengo lo siguiente:

<div id="sliderContainer">
<div id="slider"></div>
<div class="clear"></div>
</div>

En el archivo script.js tengo el siguiente codigo (El error me lo da en la linea que esta en bold):

$(document).ready(function(){
// Executed once all the page elements are loaded

lastVal = totHistory;
//alert("hola 1");
// Create the slider:
$('#slider').slider({
value:totHistory,
min: 1,
max: totHistory,
animate: true,
slide: function(event, ui) {
//alert("hola 2");
if(lastVal>ui.value)
$(buildQ(lastVal,ui.value)).hide('fast').find('.ad dComment').remove();
// Using buildQ to build the jQuery selector
// If we are moving the slider backward, hide the previous comment


else if(lastVal<ui.value)
$(buildQ(lastVal,ui.value)).show('fast');
// Otherwise show it

lastVal = ui.value;
}
});
});


Como podría solucionar este problema?