This is what I have tried:
In my webform:
<div class="demo" style="float: left">
<div id="dialog" title="Basic dialog">
<p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
<button id="opener">Open Dialog</button>
</div>
<!-- End demo -->
In my MasterPage:
<script type="text/javascript">
// increase the default animation speed to exaggerate the effect
$.fx.speeds._default = 1000;
$(function () {
$("#dialog").dialog({
autoOpen: false,
show: "blind",
hide: "explode"
});
$("#opener").click(function () {
$("#dialog").dialog("open");
return false;
});
});
</script>
As you can see, I am just trying to implement the demo from the jQuery UI official website (http://jqueryui.com/demos/dialog/#animated) but it doesn’t work.
What am I missing? Thanks in advance!
See this question regarding running javascript after the UpdatePanel has loaded. After the UpdatePanel loads is when you want to define your dialog box and button click event.