【问题标题】:html + perl : how display a waiting page/popup while user submit a formhtml + perl:当用户提交表单时如何显示等待页面/弹出窗口
【发布时间】:2020-03-24 12:22:55
【问题描述】:

我有一个 html 表单,它调用 perl 脚本作为我在数据库中保存数据的操作。 我希望在调用此脚本时出现等待屏幕。我该怎么办?

【问题讨论】:

  • 你在用什么?使用 Apache 的老式 CGI?
  • 是的,在我的 html 中我有一个类似的表单:'''
    ''' 在脚本 insert_user.pl 我实际上将数据保存在数据库中并将用户重定向到另一个页面

标签: html forms perl


【解决方案1】:

// jQuery

$.ajaxSetup({
    beforeSend:function(){
        // show image here
        $("#busy").show();
    },
    complete:function(){
        // hide image here
        $("#busy").hide();
    }
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-31
    • 2017-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-13
    相关资源
    最近更新 更多