Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/07/2012, 09:58
Avatar de Huacho12
Huacho12
 
Fecha de Ingreso: septiembre-2008
Ubicación: Isla Mujeres Q. Roo
Mensajes: 175
Antigüedad: 15 años, 7 meses
Puntos: 10
Respuesta: Jquery-Ajax: No muestra Datepicker en TextBox

Hola maycolalvarez!!!

Perdon por la molestia!!! pero ya quite el codigo que estaba utilizando de AJAX y ahora paso a utilizar la que JQUERY proporciona ............................. y aun no logro que me muestre el calendario del datepicker!!!!

tengo un archivo JS dentro de la carpeta scripts llamado "_jsccript.js":

Código Javascript:
Ver original
  1. $(function(){
  2.  
  3. /*$('#idSubMenuOpc21').click(function()
  4.     {  
  5.             alert("Click");
  6.     });*/
  7.    
  8.     // Datepicker
  9.     $('#datepicker').datepicker(
  10.     {
  11.             inline: true
  12.     });
  13.                
  14.     $('#idSubMenuOpc21').click(function() {  
  15.         $.ajax({  
  16.             url: 'fac/registro.php',
  17.             async:true,  
  18.             success: function(data) {  
  19.                 $('#divContPrincipal').html(data);  
  20.             }  
  21.         });  
  22.     });
  23.    
  24. });

y el index.html tengo:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HandBall</title>

<link type="text/css" href="estilos/trontastic/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="scripts/_jsccript.js"></script>
</head>
<!---->
<body>

<div id="idSubMenuOpc21">Mostrar Registro FAC</div>
<br/><br/><br/>
<div id="divContPrincipal"></div>
</body>
</html> 
Y en la carpeta fac/registro.php:

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>FAC</title>
</
head>
<!---->
<
body>

<
form name="wdfw">
<
input type="text" id="datepicker" />
</
form>
</
body>
</
html
Espero me puedes ayudar!!!! porfavor!!!!!
__________________
Solo se... que no se nada!!! 0_o