I'm trying to change the content url before open the dialog.
However it always render empty, because changing the contentUrl doesn't do any post or get to the server:
@Html.EJ().Dialog("modalFichaEquipo").Width(1000).Height(750).EnableModal(true).ShowOnInit(false).Title("Ficha Equipo").EnableResize(true)
<script type="text/javascript"> function openModalFichaEquipo(id) { var url = '@(System.Configuration.ConfigurationManager.AppSettings["urlFichaEquipo"])' + id; url = url.replace("&", "&");
var dialogObj = $("#modalFichaEquipo").ejDialog({ contentType: "ajax",
contentUrl: url });
//$('#modalFichaEquipo').html(""); //dialogObj.option("contentUrl", url);
$("#modalFichaEquipo").ejDialog("open"); //dialogObj.open(); } </script> |