Foros del Web » Programando para Internet » Android »

Conectar android, usando phonegap con php

Estas en el tema de Conectar android, usando phonegap con php en el foro de Android en Foros del Web. Buen día señores, miren tengo esta aplicacion, con este codigo html: @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código HTML: Ver original <!DOCTYPE html> < html > < head > ...
  #1 (permalink)  
Antiguo 05/05/2014, 19:47
Avatar de 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.

Etiquetas: androi, aplicacion, phonegap, php, usando, view
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 21:33.