Ver Mensaje Individual
  #14 (permalink)  
Antiguo 02/03/2010, 07:14
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 2 meses
Puntos: 101
Respuesta: Problema funcion $.ajax() en jquery 1.4

Aca tenes un problema de comillas. Chequealo.

Cita:
die('{"status":"0","txt":"Los campos marcados con * son obligatorios.","contenido":"<div id="divContenido'">Muestro el contenido</div>"});
Con el form, lo mismo. Fijate que usas comillas dobles para encapsular el json, y también para tu html. Entonces, entran en conflicto. Usa comillas simples en la encapsulación, que eso debe funcionar.

Cita:
function func_mostrar()
{
?>
<form id="frmDatosGenerales" name="frmDatosGenerales" method="post" accept-charset="utf-8" action="./index.php">
<table class="tabla_info_hotel">
<tr>
<td width="25%"><img src="./img/campo_obligatorio.jpg" />Nombre </td>
<td width="75%"><input name="NOMBRE" id="NOMBRE" type="text" size="60" value="" /> </td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P&aa cute;gina web&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;http://</td>
<td><input name="WEB" id="WEB" type="text" size="60" value="" /></td>
</tr>
</form>

<?
}
?>