Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/11/2012, 16:16
theroutermatic
 
Fecha de Ingreso: junio-2012
Mensajes: 35
Antigüedad: 11 años, 10 meses
Puntos: 4
De acuerdo Respuesta: No puedo ejecutar scripts con ajax

Cita:
Iniciado por stramin Ver Mensaje
Sip.

Seguramente el problema es que estás redeclarando el html y el body al traerlo nuevamente con ajax, o sea lo que deberías hacer es quitar todo esto:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>jFlow Plus</title>
  5.  
  6. </head>
  7.  

y tambien todo esto:
Código HTML:
Ver original
  1. </body>
  2. </html>

probemos así antes de revisar bien parte por parte.

Gracias por responder stramin! Si estaba redeclarando pero ya lo quité y aún así no funciona. Lo raro es que si al HTML que traigo con ajax le agrego los scripts y lo ejecuto a parte si funciona perfectamente. Pero usando ajax no funciona.

Los script los pongo de la siguiente manera en el index y dentro del "head", yo no le veo ningun error:

Código HTML:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="scripts/jflow.plus.js" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function(){
	    $("#myController").jFlow({
			controller: ".jFlowControl", // must be class, use . sign
			slideWrapper : "#jFlowSlider", // must be id, use # sign
			slides: "#mySlides",  // the div where all your sliding divs are nested in
			selectedWrapper: "jFlowSelected",  // just pure text, no sign
			width: "638px",  // this is the width for the content-slider
			height: "311px",  // this is the height for the content-slider
			duration: 400,  // time in miliseconds to transition one slide
			prev: ".jFlowPrev", // must be class, use . sign
			next: ".jFlowNext", // must be class, use . sign
			auto: true	
    });
});
</script> 

Última edición por theroutermatic; 13/11/2012 a las 16:34