douyi5157 2011-01-25 20:31
浏览 48

Ajax表单jQuerymobile没有加载内容

The send button is sending the info to my mail, but the page doesn't load the content that is on my .php .

 <div data-role="content">
  <form method="post" action="sendcontactomovil.php">
  <fieldset>
  <div data-role="fieldcontain">
   <label for="nombreyapellido">Nombre y Apellido:</label>
   <input type="text" name="nombreyapellidom"><br/>
  </div>
  <div data-role="fieldcontain">
   <label for="mail">Correo electronico:</label>
   <input type="text" name="mailm">
  </div>
        <div data-role="fieldcontain">
   <label for="telefono">Telefono:</label>
   <input type="text" name="telefonom">
  </div>
        <div data-role="fieldcontain">
  <label for="consulta" style="vertical-align:top">Consulta:</label>
  <textarea cols="40" rows="10" name="consultam"></textarea>
  </div>
  </fieldset>
  <button type="submit" value="Enviar">Enviar</button>
  </form>
 </div>

php

if($send) 
 {echo "<h3 style='text-align: center; margin-top: 200px'> Informacion Enviada Existosamente</h3>";} 
 else 
 {print "Encontramos un error al enviar el mail, por favor avisanos en db@chorrillana.cl"; }
  • 写回答

1条回答 默认 最新

  • dpa31905 2011-03-16 13:53
    关注

    Jquery mobile will use ajax to make the request, in order to see the actualization you need to rerender or reload the page.

    If you want to reload after a form submit, you can use ajaxFormsEnabled.

    Take a look at the documentation here.

    http://jquerymobile.com/demos/1.0a2/#docs/api/globalconfig.html

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度