Replace Showmodaldialog () with Jquery dialog ()

0

I am new programming and I was assigned to replace the showmodaldialog () in an old program with jquery dialog (), I am in a part where to execute an "Action" I used the showmodaldialog, now I use a function where the paramentros take me and the URL and run it in the Jquery dialog but in this case I have an "action" that runs inside a file called "Comun.js" and inside I have the end of the code that executes the "action" in this way:

before:

Objeto = showModalDialog('urlAccion' + parametros);

now: (as it should be replaced)

Objeto = AbrirDialogo('urlAccion' + parametros);

this within "Commons.js"

Outside on the page I have my function in a script like:

<script type="text/javascript">
   function AccionDialogo(urlAccion, param); {
    jQuery('#popup').dialog({
    autoOpen: false,
    title: "Seleccionar Accion",
    autoResize: true,
    modal: true,
    show: { effect: 'fade', duration: 600 },
    open: function (_event, _ui) {
        jQuery("#dialogo").attr("src", urlAccion + param)
        jQuery('.ui-dialog').css('z-index', 103);
        jQuery('.ui-widget-overlay').css('z-index', 102);
    },
    close: function (close) { $(this).dialog('destroy'); },
    Width: 500,
    Height: 400
});
}

then I would like you to help me with the function "OpenDialog ()" to send the information of the URL and the Parameters to the function that I have on my page "ActionDialog ()" how do I do that and if possible?

    
asked by Kyuwan Lightskater 17.12.2018 в 17:09
source

0 answers