Utiles.js
//Función donde inicializamos el dialog
function PageInit() {
$dialog = $('<div>Mostrar Ventana Flotante</div>')
.dialog({
autoOpen: true,
title: 'Ventana Flotante',
modal: true
});
}
index.php
Código PHP:
Ver original
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Ejemplo Ventana Flotante</title> ui.googlecode.com/svn/tags/1.7/themes/redmond/jquery-ui.css" rel="stylesheet" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script> <script src="../Scripts/Utiles.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { var $dialog; PageInit(); }); </script> </head> <body> <div></div> </body> </html>