Hai,
ich habe dieses Widget eingebaut.
http://jqueryui.com/dialog/#modal
<script>
$(function() {
$( "#dialog-modal" ).dialog({
height: 140,
modal: true
});
});
</script>
Wenn ich das in mein Script übernehme, wird der Dialog sofort angezeigt.
Lasse ich ihn weg, wird der Inhalt des Div's angezeigt.
<div id="dialog-modal" title="Basic modal dialog">
<p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
</div>
Wie es sich für einen Dialog gehört sollte jedoch der Dialog erst angezeigt werden, wenn ich ihn aufrufe.
Wie macht man sowas?