Ver Mensaje Individual
  #7 (permalink)  
Antiguo 20/06/2011, 21:25
Avatar de kimmy
kimmy
 
Fecha de Ingreso: julio-2008
Mensajes: 841
Antigüedad: 15 años, 9 meses
Puntos: 15
Respuesta: Enviar datos de un Jquery Tab a PHP

Estoy tan desesperada... Ahora lo puse asi y veo que pasa los valores por get pero el problema es que no avanza de pestaña a pestaña y no me lleva al php. Es asi:

Código Javascript:
Ver original
  1. function nuevoAjax(){
  2.     var xmlhttp=false;
  3.       try {
  4.         xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  5.        } catch (e) {
  6.         try {
  7.          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  8.           } catch (E) {
  9.            xmlhttp = false;
  10.           }
  11.           }
  12.  
  13.            if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  14.               xmlhttp = new XMLHttpRequest();
  15.             }
  16.              return xmlhttp;
  17.              }
  18.  
  19.   function cargarContenido(datasource,divID){
  20.     var contenedor;
  21.     var otro;
  22.     contenedor = document.getElementById('tabs').getElementsByTagName('li');
  23.                        
  24.      ajax=nuevoAjax();
  25.  
  26.       var nombre =document.form.fecha_evento.value //Esta variable obtiene el valor de lo q puso el usuario en el textbox nombre
  27.                         ajax.open("GET", "detalle_cotizacion.php?"+"&"+"nombre="+nombre,true);
  28.                         ajax.onreadystatechange=function() {
  29.                          if (ajax.readyState==4) {
  30.                             contenedor.innerHTML = ajax.responseText
  31.                             }
  32.                         }
  33.                     ajax.send(null)
  34.                     }

y en el boton de la ultima pestaña esto:

Código HTML:
Ver original
  1. <input type="submit" value="Cotizar" onclick ="cargarContenido('detalle_cotizacion.php','contenedor')"/>

ya no se como hacer
__________________
Caminando con el corazón partío