weixin_33743661 2017-04-19 18:57 采纳率: 0%
浏览 28


Hello and first of all thanks. That problem is taking me mad.

I've a form which is send through .ajax object. The code works fine, but doesn't when i try to add a 'beforesend' in the object.

I've this 'span' tag aside the button submit on the index.php

<input id="registrar-btn" type="button"> <span id="in-progress"> 0 </span>

And i'd like to change the '0' to "Processing data" text, i've looked for all the post here and every line seems to be ok!

I put there the .ajax code:

            type: "POST",
            url: "registrar_ciu.php",
            data: dataString,
            cache: false,
            beforeSend: function(){
                $("#in-pogress").html("Processing daata");
            success: function(){
            alert("Ciudadano "+nombre_apellido+" registrado con exito!");

So as you can see, the beforesend seems to be ok. I'll thank you each answer!

  • 写回答

1条回答 默认 最新

  • from.. 2017-04-19 18:59

    Use beforeSend (capital S), the name is case sensitive.




  • ¥20 家用射频美容仪技术规格
  • ¥25 matlab数值溢出该怎么解决?
  • ¥15 大家帮我看看为什么错了
  • ¥15 unity互动琴弦抖动效果
  • ¥15 做了个的二极管反向饱和电流测量电路,但是测试达不到效果
  • ¥15 nginx无证书访问https失败
  • ¥15 树莓派启动AP热点传入数据
  • ¥15 multisim中关于74ls192n和DSWPK开关的问题(相关搜索:计数器)
  • ¥15 在误装Windows server2019 后如何利用Windows.old恢复?
  • ¥20 代码实现状态连接包过滤防火墙的设计与实现