Transfer effect like Dojo modal window
<p>I know how to work with jQuery dialog, like below</p>

<h2>JQuery snippet</h2>

<pre><code>$("#PMinfo").dialog({

autoOpen: true,
height: 250,
width: 600,
modal: false,
draggable: false,
resizable: false,
close: function() {

var $this = $(this);

$this
    .dialog("widget")
    .effect("transfer", {

        to: "#smpb_info_btn",
        className: "ui-effects-transfer"

    }, 500, function() {

        $this.remove();

    });
</code></pre>

<p>}}</p>

<p>But I want to achieve the transfer effect like Dojo dialog. Here I am giving the link of page where user can go and see what kind of effect I want to achieve this effect with jquery dialog open and close. So please go to <a href="http://dojotoolkit.org/reference-guide/dijit/Dialog.html" rel="nofollow">the link page</a> and just click on view example button and see how the dialog appears with effect.</p>

<p>So I want that when user click on my button then dialog should open like Dojo with transfer effect and when close dialog then dialog should zoom out to button. Please guide me with code snippet that shows how I could get the same effect with jQuery dialog open and close.</p>

<p><strong>THE code i copy which is not working</strong></p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true"    CodeFile="JQueryDialogWithTransferEffect.aspx.cs" Inherits="JQueryDialogWithTransferEffect" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
&lt;title&gt;&lt;/title&gt;
&lt;link href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet"    type="text/css" /&gt;
&lt;script src="js/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery-ui-1.7.2.custom.min.js"type="text/javascript"&gt;&lt;/script&gt;

 &lt;style type="text/css"&gt;

.ui-effects-transfer 
{
 border: 2px dotted grey;
}
&lt;/style&gt;
&lt;script type="text/javascript"&gt;
jQuery(function ($) {
    // Set up the dialog, don't show it yet
    // Note the effects, they tie up with the
    // transfer effect we do later.



    $("#dialog").dialog({
        show: {
            effect: "fade",
            duration: 1000
        },
        hide: {
            effect: "fade",
            duration: 500
        },
        autoOpen: false
    });

    // Hook up the button to toggle showing/hiding
    // the dialog
    $("#btnToggle").click(function () {
        var dlg = $("#dialog");
        alert("pp");
        // Show or hide?
        if (dlg.is(":visible")) {
            // Hide: Kick off the transfer effect and close the
            // dialog. The transfer will run simultaneously
            // with the fade we configured above
            dlg.effect("transfer", {
                to: "#btnToggle",
                className: "ui-effects-transfer",
                duration: 500
            }).dialog("close");
        }
        else {
            // Show: Show the dialog, then kick off a transfer
            // effect transferring the button to the dialog's
            // widget. Again the transfer and fade run simultaneously
            // and so work together.
            dlg.dialog("open");
            $(this).effect("transfer", {
                to: dlg.dialog("widget"),
                className: "ui-effects-transfer"
            }, 500);
        }
        return false;
    });
});

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id="form1" runat="server"&gt;
&lt;input type="button" id="btnToggle" value="Toggle Dialog"/&gt;
&lt;div id="dialog" title="Basic dialog" style="display: none"&gt;
&lt;p&gt;This is the default dialog which is useful for displaying information. 
The dialog window can be moved, resized and closed with the 'x' icon.&lt;/p&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>please just copy my code and run it in aspx file and see the result. please help me to get the error....what is wrong in my code. thanks</p>
