Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery ajax表单提交建议后的简单lightbox_Jquery_Ajax_Post_Submit_Lightbox - Fatal编程技术网

Jquery ajax表单提交建议后的简单lightbox

Jquery ajax表单提交建议后的简单lightbox,jquery,ajax,post,submit,lightbox,Jquery,Ajax,Post,Submit,Lightbox,我正在寻找一个灯箱,我可以用来给用户反馈后,我的联系方式已经提交,我看了几个例子,但我想一些简单的任何建议 这是我的密码 var automaticOnSubmit = cname.form.onsubmit; cname.form.onsubmit = function(){ var valid = automaticOnSubmit(); if(valid){ $(".load").show(); $.post("http://dw.insi

我正在寻找一个灯箱,我可以用来给用户反馈后,我的联系方式已经提交,我看了几个例子,但我想一些简单的任何建议

这是我的密码

   var automaticOnSubmit = cname.form.onsubmit;
    cname.form.onsubmit = function(){
    var valid = automaticOnSubmit(); 
    if(valid){

    $(".load").show();
    $.post("http://dw.inside-the-internet.com/thewp/wp-content/themes/dwtemplate/process.php",
                   $("#cform").serialize(),
                    function(data){

                    if($.trim(data) == 'sent') {


//i am looking to do something here with a simple lightbox messsage ????
                        $(".sent").hide();                   
                        $(".load").fadeOut();

                        setTimeout(function() {
                        $('.sent').fadeIn();
                        }, 3500);

                        window.setTimeout(function() {
                        window.location.href = 'http://dw.inside-the-internet.com';
                        }, 9000);

                        }else{
                             alert(data); 
                             $(".load").hide();
                        }

    });
    }
我看了等

但它们似乎都太过分了

需要帮忙吗 返回false; }

Hi是一个非常好的用于JQuery的简单且可自定义的模式框插件。他们的网站上充满了示例,它的使用非常简单且功能强大:)


我建议使用jQuery UI库中的模式对话框-这将非常方便地满足您的需要。

以下是一些建议