Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/05/2014, 19:47
Avatar de andres_15_
andres_15_
 
Fecha de Ingreso: septiembre-2008
Ubicación: Cali
Mensajes: 232
Antigüedad: 15 años, 7 meses
Puntos: 7
Conectar android, usando phonegap con php

Buen día señores, miren tengo esta aplicacion, con este codigo html:

Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <meta name="viewport" content="width=device-width, initial-scale=1">
  3. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
  4. <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
  5. <script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
  6. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  7. </head>
  8. <div data-role='header'>
  9.     <h1>Amada Colombia</h1>
  10. </div>
  11.  
  12.  
  13. Usuario: <input type='text' name='user' id='user' value='andres'>
  14. <br>
  15. Clave: <input type'password' name='password' id='password'>
  16. <br>
  17.  
  18. <a onclick='peticion()'> ENTRAR</a>
  19.  
  20.  
  21. <div data-role='footer'>
  22.  
  23. <div id='cargar'>
  24.  
  25.  
  26. </div>
  27. <h2>Amada ©</h2>
  28. </div>
  29.  
  30. function peticion(){
  31. $.ajax({
  32.    url:'http://chessmoney.260mb.net/recibe.php',
  33.    type:'POST',
  34.    data:"user="+$("#user").val(),
  35.    dataType:'json',
  36.    success: function(result) {
  37.         alert(result);
  38.    }  
  39. });
  40. }
  41.  
  42.  
  43.  
  44. </body>
  45. </html>

Estoy probando que tenga conexion con el firebug y todo bien, tambien lo probe con un form y un boton de submit y de esta manera tambien funciona, solo que cuando lo trabajo con android no anda.

Les agradeceria me colaborararn, gracias.