Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/02/2008, 17:07
Avatar de shakaran
shakaran
 
Fecha de Ingreso: agosto-2005
Ubicación: España - Ciudad Real
Mensajes: 374
Antigüedad: 18 años, 9 meses
Puntos: 7
Re: Efecto Mootools tras cargar peticion Ajax

He conseguido avanzar en el problema. Ahora ya funciona, pero la altura "parpadea" del total a 0 y luego hace el efecto.

Este el código:
Código:
onSuccess: function()
{
	$('test').setHTML(this.response.text)
	var actualHeight=$('test').getStyle('height').toInt() //PROBLEM: In this point the effect "flicker" of actualHeight to 0 on next line
	$('test').setStyle("height", 0);//Set height to 0
	new Fx.Style('test','height',{wait:false,duration: 3000,transition:Fx.Transitions.Bounce.easeOut}).start(0,actualHeight)
}
Bueno al menos funciona bien, pero si se podría mejorar lo del parpadeo.
__________________
Quijost Backend Engineer - www.quijost.com - Hosting rápido, eficiente y profesional
Blog: www.shakaran.net