jQuery (Core) is a cross-browser JavaScript library that provides abstractions for common client-side tasks such as Document Object Model (DOM) traversal, DOM manipulation, event handling, animation and Ajax. jQuery also provides a platform to create plugins that extend jQuery's capabilities beyond those already provided by the library.
TRUSTED BY
ASKER
It's better if I know why.
In another place, where it is linked to an a href being clicked, and autoOpen being off, it works perfectly. That code is like this:
<script>
$( "#dialog" ).dialog({
autoOpen: false,
<? if ($type == "wide") { ?>
width: 500
<? } else { ?>
width: 300
<? } ?>
});
$( "#opener" ).click(function(event) {
event.preventDefault();
$( "#dialog" ).dialog( "open" );
});
</script>
and
<div id="dialog" title="What's New"><? print $wn['content']; ?></div>
and
<a href="#dialog" id="opener"><b>What's New</b></a>
Thanks,
Richard