Abrir Dialog

JAVASCRIPT

$(function(){
            //No se muestra al inciar
           $("#actoresLocales").dialog({
                    autoOpen: false,
                    modal: true,
                    height: 200,
                    width: 500,
                    show: {
                        effect: "blind",
                        duration: 1000
                    },
                    hide: {
                        effect: "explode",
                        duration: 1000
                    }
                });
});

function abrirDialog(){
        $("#actoresLocales").dialog("open");
}

HTML

<input type="button" value="Abrir Dialog" onclick="abrirDialog();">

<div id="actoresLocales" title="Actores locales participantes">
            <table border="0" width="100%">
                <tr>
                    <td width="150">INSTITUCION</td>
                    <td>:</td>
                    <td><select name="SInstitucion" id="SInstitucion" class="text1"/></td>
                </tr>
                <tr>
                    <td width="150">PAGO</td>
                    <td>:</td>
                    <td><input type="text" id="txtCargo" class="text1" style="width:300px;" maxlength="150"></td>
                </tr>
                <tr>
                    <td width="150">NOMBRES</td>
                    <td>:</td>
                    <td><input type="text" id="txtNombresApellidos" class="text1" style="width:300px;" maxlength="150"></td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                    <td align="right"><input type="button" id="btnAgregar" value="Agregar" onclick="agregarActoresLocales(path);"></td>
                </tr>
            </table>
        </div>

Comentarios

Entradas populares de este blog

Subir proyecto al repositorio existente en Bitbucket

Sonarqube : The component parameter is missing