Open SharePoint Url in dialog using Jquery UI dialog

Some time we need to open the SharePoint pages from other technologies like PHP or other web technologies. We can use Jquery UI top open the dialog page. The samples in jquery UI does't give any sample on how to open a URL in the dialog. The below sample works for opening the URL in JQuery UI dialog.


<!DOCTYPE html>

<script src=""></script>
<script src=""></script>
<link href="" rel="stylesheet" type="text/css" />
<title>Modal Dialog</title>

<script type="text/javascript">

    $(function () {
            autoOpen: false,
            show: "fade",
            hide: "fade",
            modal: true,
            open: function (ev, ui) {
                $('#myIframe').src = '';
            height: 900,
            width: 1150,
            resizable: true,
            title: 'User Profile'

        $("#opener").click(function () {

            return false;


<div id="dialog">  
   <iframe id="Iframe1" style="width: 1100px; height: 800px;" src="http://sharepoint:2010/"></iframe>
  <div id="divInner"></div>
<button id="opener">Open Dialog</button>

Comments (0)

Skip to main content