This question is locked. New answers and comments are not allowed.
I've created an ajax function to open a modal Window to show information of other domain. It takes a little bit to be opened. Is there any way to show a loading image till the window is already opened?
Here is the function to open the modal Window:
Thanks in advance.
Juan Pablo
Here is the function to open the modal Window:
function CreateWindow(contentUrl, title, width, html) { if (contentUrl) { var domain = location.hostname; if (location.port) domain += ':' + location.port; contentUrl = location.protocol + '//' + domain + contentUrl; html = ''; } if (!title) title = ''; if (!width) width = 960; var acts = new Array(); acts[0] = "Refresh"; acts[1] = "Close"; acts[2] = "Maximize"; var windowElement = $.telerik.window.create({ title: title , html: html , actions: acts , contentUrl: contentUrl , modal: true , resizable: true , draggable: true , width: width , height: 900 , onClose: function (e) { e.preventDefault(); windowElement.data('tWindow').destroy(); } , onRefresh: function (e) { windowElement.data('tWindow').center(); } }); windowElement.attr('id', 'Window'); windowElement.data('tWindow').center().open(); }Thanks in advance.
Juan Pablo
