dojox.off.ui._showDetails
dojo.require("dojox.off.ui");
defined in dojox/off/ui.js
Usage
function (evt) (view source)
evt.preventDefault(); evt.stopPropagation(); if(!dojox.off.sync.details.length){ return; } // determine our HTML message to display var html = ""; html += "<html><head><title>Sync Details</title><head><body>"; html += "<h1>Sync Details</h1>\n"; html += "<ul>\n"; for(var i = 0; i < dojox.off.sync.details.length; i++){ html += "<li>"; html += dojox.off.sync.details[i]; html += "</li>"; } html += "</ul>\n"; html += "<a href='javascript:window.close()' " + "style='text-align: right; padding-right: 2em;'>" + "Close Window" + "</a>\n"; html += "</body></html>"; // open a popup window with this message var windowParams = "height=400,width=600,resizable=true," + "scrollbars=true,toolbar=no,menubar=no," + "location=no,directories=no,dependent=yes"; var popup = window.open("", "SyncDetails", windowParams); if(!popup){ // aggressive popup blocker alert("Please allow popup windows for this domain; can't display sync details window"); return; } popup.document.open(); popup.document.write(html); popup.document.close(); // put the focus on the popup window if(popup.focus){ popup.focus(); }
parameter | type | description |
---|---|---|
evt |