rem: document.write(  "<table id='"+dwid+"' cellspacing='0' cellpadding='2'" +"    style='display:none; position: absolute; left:300px; top:300px; width: 600px; z-index:100;" +"    background-color: white; border: 2px solid #333; padding: 5px;' " +"    ><tr>"  +"    <td id='"+dwdhid+"' " +"        style='cursor:move;" +"        color: white; background-color: navy;'" +"        >"  +"        Wicket Ajax Debug Window (drag me here)" +"    </td>" +"    <td style='text-align: right;'>" +"        <a href='javascript:WicketAjaxDebug.clearLog()'>clear</a> | " +"        <a href='javascript:WicketAjaxDebug.hideDebugWindow()'>close</a>" +"     </td> </tr><td colspan='2'>"  +"    <form>"  +"        <textarea cols='60' rows='20' wrap='off' " +"            name='"+WicketAjaxDebug.debugWindowLogId+"' id='"+WicketAjaxDebug.debugWindowLogId+"' " +"            style='width:100%;' " +"        ></textarea>"  +"    </form>" +"</td></tr></table>");  
add: document.write( "<div style='width: 50em; display: none; position: absolute; left: 200px; top: 300px; z-index: 1000;' id='"+dwid+"'>"+ "	<div style='border: 1px solid black; padding: 1px; background-color: #eee'>"+ "		<div style='overflow: auto; width: 100%'>"+ "			<div style='float: right; padding: 0.2em; padding-right: 1em;'>"+ "				<a href='javascript:WicketAjaxDebug.clearLog()' style='color:blue'>clear</a> | "+ "				<a href='javascript:WicketAjaxDebug.hideDebugWindow()' style='color:blue'>close</a>"+ "			</div>"+ "			<div id='"+dwdhid+"' style='padding: 0.2em; background-color: gray; color: white; padding-left: 1em; margin-right: 8em; cursor: move;'>"+ "				Wicket Ajax Debug Window (drag me here)"+ "			</div>"+ "			<div id='"+WicketAjaxDebug.debugWindowLogId+"' style='width: 100%; height: 30em; background-color: white; overflow: auto; white-space: nowrap'>"+ "			</div>"+ "		</div>"+ "	</div>" + "</div>" ); 
context: 	init : function() {        if ( wicketAjaxDebugEnabled()) {        	var wad=WicketAjaxDebug;        	var dwid=wad.debugWindowId;        	var dwdhid=wad.debugWindowDragHandleId;			var firstTime = document.getElementById(dwid) == null;			if (firstTime)	            document.write(	        		        	 "<table id='"+dwid+"' cellspacing='0' cellpadding='2'"	        	+"    style='display:none; position: absolute; left:300px; top:300px; width: 600px; z-index:100;"	        	+"    background-color: white; border: 2px solid #333; padding: 5px;' "	        	+"    ><tr>"	        		        	+"    <td id='"+dwdhid+"' "	        	+"        style='cursor:move;"	        	+"        color: white; background-color: navy;'"	        	+"        >"	        		        	+"        Wicket Ajax Debug Window (drag me here)"	        	+"    </td>"	        	+"    <td style='text-align: right;'>"	        	+"        <a href='javascript:WicketAjaxDebug.clearLog()'>clear</a> | "	        	+"        <a href='javascript:WicketAjaxDebug.hideDebugWindow()'>close</a>"	        	+"     </td> </tr><td colspan='2'>"	        	    	        	+"    <form>"	        	    	        	+"        <textarea cols='60' rows='20' wrap='off' "	        	+"            name='"+WicketAjaxDebug.debugWindowLogId+"' id='"+WicketAjaxDebug.debugWindowLogId+"' "	        	+"            style='width:100%;' "	        	+"        ></textarea>"	        	    	        	+"    </form>"	        	+"</td></tr></table>");                        WicketDrag.init(wicketGet(dwdhid), wicketGet(dwid));			if (firstTime)            	            document.write(	            	             "<div style='position:absolute; left:10px; top:95%; z-index:100;'>"	            +"    <a href='javascript:WicketAjaxDebug.showDebugWindow()'>WICKET AJAX DEBUG</a>"	            +"</div>");        }	}
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1204/d1cae171f25193f2ba60b4390b72b56eb417e662/wicket-ajax-debug.js/buggy/wicket/src/java/wicket/ajax/wicket-ajax-debug.js