Foros del Web » Programando para Internet » Jquery »

No funciona mi funcion de jquery datepicker

Estas en el tema de No funciona mi funcion de jquery datepicker en el foro de Jquery en Foros del Web. Hola amigos soy nuevo en esto y quiero implemtar un calendario en jquery, en una caja de text que se llama "Txt_FechaCierre" ya importe mis ...
  #1 (permalink)  
Antiguo 10/04/2012, 14:54
 
Fecha de Ingreso: septiembre-2003
Mensajes: 182
Antigüedad: 20 años, 7 meses
Puntos: 1
Exclamación No funciona mi funcion de jquery datepicker

Hola amigos soy nuevo en esto y quiero implemtar un calendario en jquery, en una caja de text que se llama "Txt_FechaCierre" ya importe mis librerias quedaron de la siguiente manera

¿El probelma es que no me despliega nada ni tampoco un error para saber que pueda estar pasando?


<?php
include("cnx.php");
$_SESSION['txt_usuario'] = $row['CUsu_User'];
?>
<!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" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Alta de regsitros</title>
<script type="text/javascript" src="jqueryUI/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jqueryUI/js/jquery-ui-1.8.18.custom.min.js"></script>
<link href="jqueryUI/css/ui-lightness/jquery-ui-1.8.18.custom.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function()(
$("#Txt_FechaCierre").datepicker();
));
</script>
<link rel="stylesheet" type="text/css" href="inc/common/main.css" />
<link href="css/screen.css" rel="stylesheet" type="text/css" media="screen" />
<link href="estilos/text.css" rel="stylesheet" />


</head>
<body>
<div id="container">
<div id="head">
<p align="right"><a href="index.php">Salir</a></p>
<div class="clear">
<table width="610" border="0" align="center">
<tr>
<th scope="col"><div align="left"><img src="imagenes/logo_gdf.gif" width="209" height="77" /></div></th>
<th scope="col"> <p><strong>C A R I V A </strong></p>
<p><strong>Centro de atención a riesgos victimales y adicciones </strong></p></th>
<th scope="col"><div align="right"><img src="imagenes/logo_pgjdf.jpg" width="148" height="111" /></div></th>
</tr>
</table>
</div>
</div>
<!-- End Head -->
<div id="content">
<p align="right" class="style1">&nbsp;</p>
<div class="intro">
<p align="center"><strong>Alta de registros </strong></p>
</div>
<div class="welcome">
<a href="'void(0)'" rel="toggle[welcomebox]" data-openimage="inc/common/welcomecollapse.png" data-closedimage="inc/common/welcomeexpand.png"></a>
<form id="frm_altas" name="frm_altas" method="post" action="">
<table width="601" border="0" align="center">
<tr>
<th scope="col">Fecha</th>
<td><label>
<input name="Txt_Fecha" type="text" id="Txt_Fecha" value="<?php echo date('I, F j, Y ') ?> " />
</label></td>
</tr>
<tr>
<th scope="row">Cariva</th>
<td><label>
<input name="txt_cariva" type="text" id="txt_cariva" />
</label></td>
</tr>
<tr>
<th scope="row">Nombre</th>
<td><label>
<input name="txt_nombre" type="text" id="txt_nombre" size="40" />
</label></td>
</tr>
<tr>
<th scope="row">Genero</th>
<td><label>
<select name="lb_generos" id="lb_generos">
<option>--- Seleccione una opción ---</option>
<?php
//seleccion de la tabla
$result=mysql_query("select * from generos");
//Llenas el combo
if ($row = mysql_fetch_array($result))
{
do {
echo '<option value= "'.$row["CGen_Numero"].'">'.$row["CGen_Descri"].'</option>';
}
while ($row = mysql_fetch_array($result));
}
?>
</select>
</label></td>
</tr>
<tr>
<th scope="row">Edad</th>
<td><label>
<input name="txt_edad" type="text" id="txt_edad" size="5" />
</label></td>
</tr>
<tr>
<th scope="row">Delito o Problem&aacute;tica </th>
<td><label>
<select name="lb_delitos" id="lb_delitos">
<option>--- Seleccione una opción ---</option>
<?php
//seleccion de la tabla
$result=mysql_query("select * from delitos");
//Llenas el combo
if ($row = mysql_fetch_array($result))
{
do {
echo '<option value= "'.$row["CDel_Numero"].'">'.$row["CDel_Descri"].'</option>';
}
while ($row = mysql_fetch_array($result));
}
?>
</select>
</label></td>
</tr>
<tr>
<th scope="row">Averiguaci&oacute;n previa o Causa penal </th>
<td><label>
<input name="txt_averprev" type="text" id="txt_averprev" size="25" />
</label></td>
</tr>
<tr>
<th scope="row">Abogado</th>
<td><label>
<select name="lb_abogados" id="lb_abogados">
<option>--- Seleccione una opción ---</option>
<?php
//seleccion de la tabla
$result=mysql_query("select * from abogados");
//Llenas el combo
if ($row = mysql_fetch_array($result))
{
do {
echo '<option value= "'.$row["CAbo_Numero"].'">'.$row["CAbo_Descri"].'</option>';
}
while ($row = mysql_fetch_array($result));
}

?>
</select>
</label></td>
</tr>
<tr>
<th scope="row">Observaci&oacute;n</th>
<td><label>
<textarea name="txt_observa" cols="50" rows="8" id="txt_observa"></textarea>
</label></td>
</tr>
<tr>
<th scope="row">Fecha de cierre </th>
<td><label>
<input name="Txt_FechaCierre" type="text" id="Txt_FechaCierre" />
</label></td>
</tr>
<tr>
<th scope="row">Motivo de cierre </th>
<td><textarea name="txt_motivo" cols="50" rows="8" id="txt_motivo"></textarea></td>
</tr>
</table>
<br />
<table width="601" border="0" align="center">
<tr>
<th scope="col"><input name="Btn_Guardar" type="submit" id="Btn_Guardar" value="Guardar" /></th>
</tr>
</table>
<p>
<label></label>
</p>
</form>
</div>
</div>
<p align="center">Dirección: Dr. Lucio No. 220, P.B., Col. Doctores, México, D.F., CP: 06720.,
Tel: 55.52.42.61.35 </p>
</div>

</body>
</html>
  #2 (permalink)  
Antiguo 10/04/2012, 15:10
 
Fecha de Ingreso: enero-2012
Mensajes: 4
Antigüedad: 12 años, 3 meses
Puntos: 1
Respuesta: No funciona mi funcion de jquery datepicker

Saludos,
el problema esta en el script
usas "(" ")" en vez de las llaves "{" "}"
asi lo tienes
Código PHP:
<script type="text/javascript">
$(
document).ready(function()(
$(
"#Txt_FechaCierre").datepicker();
));
</script> 
cuando deberia ser de esta manera

Código PHP:
<script type="text/javascript">
$(
document).ready(function(){
$(
"#Txt_FechaCierre").datepicker();
});
</script> 

Etiquetas: Ninguno
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:52.