(04-23-2019, 12:06 PM)Jose Nilton Pace Wrote: Hi Matija. Put the Modal div in the same IWForm template.
To show/hide this modal:PHP Code:<body>
<div class="wrapper">
<header class="main-header">
......
</header>
</div><!-- /.wrapper -->
<!-- Modal -->
<div class="modal fade" id="EditModal" role="dialog" data-backdrop="false" data-keyboard="false">
<div class="modal-dialog modal-lg" role="document">
<!-- Modal content-->
<div class="modal-content">
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
Code:Show: WebApplication.CallBackResponse.AddJavaScriptToExecute('$("#EditModal").modal("show");') ;
or
Hide: WebApplication.CallBackResponse.AddJavaScriptToExecute('$("#EditModal").modal("hide");') ;
Thx, work.
I also build progressbar in modal
<div class="progress">
<div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar"
aria-valuenow="30" aria-valuemin="0" aria-valuemax="100" style="width:50%">
{%ProgressWait%}
</div>
</div>
Maybe: WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('document.getElementById("aria-valuenow").value=' + ProgressValue + ' )';
Error in processAjaxExecute when evaluating: document.getElementById('aria-valuenow').value=0 Cannot set property 'value' of null
How send with javascript (change) value aria-valuenow (30)?