<script src="~/Scripts/jquery-2.1.1.js"></script>
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
经过验证时jquery版本高了,与ajax中live()方法冲突,还是其他的,我没找到 <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>高版本,求指点,jquery只用高版本,不然bootstrap中一些效果没法用了,跪求!!
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
经过验证时jquery版本高了,与ajax中live()方法冲突,还是其他的,我没找到 <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>高版本,求指点,jquery只用高版本,不然bootstrap中一些效果没法用了,跪求!!
解决方案 »
- 关于Session问题 急求。。
- 应用程序的首页指向某个文件夹下的一个文件,该文件上的图片路径错误,该如何解决
- 如何遍历Penal中的所有控件
- REMOTING服务器端程序是部署到服务器上就可以吧,不要一直开着吧
- 发现TreeView控件一个新问题,解决不了,请各位帮忙!!
- sql 查询一个表中最新数据 并且从后第3行到第6行数据?
- 怎样每隔10秒循环显示数据库中的前5张图片?
- 大家过来看看,比较棘手的问题(xml和mime)
- ★★★datagrid在cs中生成checkbox,如何保持checkbox选择状态★★★
- 数据库声明不正确?怎么处理??
- 网站今天突然出问题,服务器报错 没有可用于编码 2216 的数据。
- highcharts+.net+mssql做柱状图,后台数据怎么绑定就可以查询到数据库查询结果
JQ高版本好像不支持live了 换on试试
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>jquery1.9以上 unobtrusive-ajax.min就不支持异步刷新了! 也就是onsuccess不会被执行,我return Content(“ok”);它直接在页面上显示ok,不执行afterLogin,哎,求一个unobtrusive-ajax
public ActionResult CheckLogin()
{
return Content("ok:ok");
}
@using (Ajax.BeginForm("CheckLogin", new { }, new AjaxOptions() { HttpMethod = "post", OnSuccess="afterLogin" }, new { id = "loginForm" }))
{
<table class="tab">
<tr>
<td class="txt_left" >User Id:</td>
<td><input type="text" class="txt_right" name="name" value="" id="name"/><span id="msg1" class="msg"></span></td>
</tr>
<tr>
<td class="txt_left">Password:</td>
<td><input type="password"name="pwd" class="txt_right" value="" id="pwd" /><span id="msg2" class="msg" ></span></td>
</tr>
<tr>
<td><button id="login" type="submit" class="btnlog" style="margin:14px 0 0 13px;"> </button></td>
<td><input id="clerr" type="submit" class="btncle" value=" " style="margin:14px 0 0 29px;" /></td>
</tr>
</table>
}
...........................