开发者

How can I load a web page inside of a jQuery dialog box?

开发者 https://www.devze.com 2022-12-29 11:31 出处:网络
I am designing a wordpress template, and I would like to use jQuery ui to display each of the calendar links in a dialog box, when they are clicked.

I am designing a wordpress template, and I would like to use jQuery ui to display each of the calendar links in a dialog box, when they are clicked.

What I want, is when someone clicks on a link in the wordpress calendar, the con开发者_如何学编程tent will load in the dialog box, and display over the calendar.

I would appreciate any help on this, thanx in advance!


If you want to load a seperate page you can use:

$("#youDiv").load("yourURL").dialog({
    autoOpen: false,
    modal: true,
    bgiframe: true,
    width: 450
});
$("#youDiv").dialog('open');
0

精彩评论

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