ASP.Net MultiView & JQuery Accordion

不打扰是莪最后的温柔 提交于 2019-12-12 02:53:40

问题


I have a jQuery accordion running inside an ASP.Net MultiView.

It works fine if placed on the first view, however when changing to another view with the accordion on it fails to work.

Looking in Firebug the code is all there, the styles etc... even the hover over works. Just no accordion behavior when clicking headings.

What am I doing wrong.

Only thing i can think of is to use the ASP.Net Accordion Ajax control, however that would make me sad.


回答1:


I guess the problem is update panel or ajax request, when you change the step jquery bindings are lost. You can use endRequest event to rebind the accordion.

more details about endRequest http://msdn.microsoft.com/en-us/library/bb383810.aspx



来源:https://stackoverflow.com/questions/8908865/asp-net-multiview-jquery-accordion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!