VetSource Online Portal


VetSource Online Portal ‘ + t); alert(‘title set to Reports > ‘ + t); window.setPopupTitle(t); }*/ var url = ”; var ifrm; function openPopup(title, rUrl) { url = rUrl; $j(“#dialog-modal”).dialog( { modal: true, width: $j(window).width() – 40, height: $j(window).height() – 40, open: function(event, ui) { $j(“dialog-modal-loading”).show(); if (ifrm == null) { ifrm = document.createElement(“IFRAME”); ifrm.style.width = 100+”%”; ifrm.style.height = 99+”%”; ifrm.setAttribute(“frameBorder”,”0″); ifrm.setAttribute(“id”,”reportFrame”); $j(“#dialog-modal”).append(ifrm); } $j(“reportFrame”).ready(function() { console.log(“iframe loaded”); $j(“dialog-modal-loading”).show(); if (ifrm.getAttribute(“src”) != url) { $j(“#dialog-modal”).dialog(‘option’, ‘title’, ‘Report loading…’); } }); if (ifrm.getAttribute(“src”) != url) ifrm.setAttribute(“src”, url); }, close: function(event, ui) { /* if (back!=null) { window.location.href = back; } else { window.history.back(); } */ // resetInitialView(); } }); } function resetInitialView() { ifrm.contentWindow.resetInitialView(); } function setTitle(t) { $j(“#dialog-modal”).dialog(‘option’, ‘title’, ‘Reports > ‘ + t); } function closePopup() { $j(“#dialog-modal”).dialog(‘close’); } ]]>

Source