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

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 content will load in the dialog box, and display over the calendar.

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

Answers


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');

Need Your Help

How to set a global before PHPUnit's skeleton-test is run

php phpunit

We set a global in our prepend file used to form the path for our require_once calls. For example: