Estoy tratando de crear un diálogo modal para mostrar simplemente el contenido (html de algún tipo o de otro tipo):modal-diálogo no ocultará al cargar la página
<script>
$.fx.speeds._default = 1000;
$(function() {
$("#dialog").dialog({
autoOpen: false,
closeOnEscape: true,
modal: true,
position: 'center',
width: 800,
height: 600,
show: "blind",
hide: "explode"
});
$("#opener").click(function() {
$("#dialog").dialog("open");
return false;
});
});
</script>
Cuando veo la página, el diálogo es en línea y no oculto. Aquí está mi html:
<div id="dialog">This is my dialog that should be hidden until called</div>
<button id="opener">I Open the Dialog</button>
¿Qué estoy haciendo mal?
¿Está incluyendo jQueryUI.js en el orden correcto? Parece que no funciona para nada, así que quizás no tengas acceso a jQueryUI. – orolo