且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery的:通过Ajax加载模态对话框内容

更新时间:2023-12-05 08:16:52

请从Nemikor这篇博客文章,这应该做你想要的。

Check out this blog post from Nemikor, which should do what you want.

http://blog.nemikor.com/2009/04/18/loading-a-page-into-a-dialog/

基本上,叫开放,则加载从其他网页内容之前先。

Basically, before calling 'open', you 'load' the content from the other page first.

jQuery('#dialog').load('path to my page').dialog('open');