开发者

Problem when using UI dialog in Jquery UI tabs

开发者 https://www.devze.com 2023-01-17 17:06 出处:网络
I have a page with 4 tabs which are dynamically loaded. In each of the tab there are links which invoke dialog. The problem is when I refresh one of the tab the UI dialog which was created due to init

I have a page with 4 tabs which are dynamically loaded. In each of the tab there are links which invoke dialog. The problem is when I refresh one of the tab the UI dialog which was created due to initialization does not get removed and it is recreating again causing the dialog to not function.

Any ideas on how to fix it would be most appreciated. I am kinda stuck and need a solution ASAP.

update: Sorry I forgot to mention that I use ASP .Net MVC 2 and the data f开发者_开发问答or tabs gets refreshed from the controller.

Thanks,

Raja


The only way to fix the problem was to have a ModalDialogContainer at the parent page and load that dialog with whatever the URL those links had. This way even when the tabs refreshed the outer container (parent) was in tact.

Hope this helps someone.

Thanks, Raja

0

精彩评论

暂无评论...
验证码 换一张
取 消