jquery + asp.net延迟回发 [英] jquery + asp.net delay postback

查看:77
本文介绍了jquery + asp.net延迟回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在LinkBut​​ton上实现一个slideUp jQuery效果,然后在页面上进行回发。效果需要600ms才能完成。我遇到的问题是,在jQuery效果完成页面之前已经回发了,所以jQuery脚本在中途停止了。有没有办法延迟回发,然后做一个手动回发?

I would like to implement a slideUp jQuery effect on LinkButton click and then do postback on page. The effect takes 600ms to accomplish. The problem I confront with is that before jQuery effect finishes page already does postback, so the jQuery script stops somewhere halfway. Is there any way to delay postback other then doing a manual postback?

推荐答案

有可能提供一个滑动功能仅在滑动完成时执行:

It is possible to provide a function to slideup which will only execute when the sliding is done:

formDiv.slideUp('normal', function () {
    $(form).submit();
  });

这篇关于jquery + asp.net延迟回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆