本文介绍了JQuery的blockUI和ASP.Net?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用jQuery和blockUI在asp.net我爱jQuery和blockUI,但显示与他们asp.net按钮实际的按钮被移出的格式的面板标签,所以当你按一下按钮没有任何反应。

Well im using jQuery and blockUI in asp.net i love jquery and blockUI but i found a problem when displaying a panel with a asp.net button in them the actual button is moved out of the form tag, so when you click the button nothing happens..

有没有什么办法来配置blockUI把其最后在形式的标签内容标签,而不是body标签!

is there any way to configure blockUI to place its content tags last in the forms tag instead in the body tag!

推荐答案

现在即时通讯不是100%肯定这是最好的解决办法,但我没有进入jquery.blockUI.js,取而代之的几行。

Now im not 100% sure this is the best solution but i did go into the jquery.blockUI.js and replaced a few lines..

替换该行

var layers = [lyr1, lyr2, lyr3], $par = full ? $('body') : $(el);

var layers = [lyr1, lyr2, lyr3], $par = full ? $('form') : $(el);

替换该行

$('html,body').css('height', '100%');

$('html,body,form').css('height', '100%');

替换该行

els = $('body').children().filter('.blockUI').add('body > .blockUI');

els = $('form').children().filter('.blockUI').add('body > form > .blockUI');

和它似乎是工作,到目前为止还没有测试多个浏览器还没有!!

and it seems to be working so far haven't tested more than one browser yet!!

这篇关于JQuery的blockUI和ASP.Net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 18:38