| 1 | joko | 1.1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 
| 2 |  |  | <html> | 
| 3 |  |  | <head> | 
| 4 |  |  | <title>CBE Debug Window</title> | 
| 5 |  |  | <meta name='author' content='Mike Foster, cross-browser.com'> | 
| 6 |  |  | <style type='text/css'> | 
| 7 |  |  | body { font-family:verdana,arial,sans-serif,helvetica; font-size:12px; color:#000000; background:#ffffff; margin:0px; padding:0px; } | 
| 8 |  |  | p { font-family:verdana,arial,sans-serif; font-size:12px; color:#000000; background:#ffffff; } | 
| 9 |  |  | td { font-family:verdana,arial,sans-serif; font-size:12px; color:#000000; background:#ffffff; } | 
| 10 |  |  | a:link, a:visited, a:active { font-family:verdana,arial,sans-serif; font-size:10px; color:#3333ff; text-decoration:none;} | 
| 11 |  |  | a:hover { font-family:verdana,arial,sans-serif; font-size:10px; color:#ff3333; text-decoration:underline;} | 
| 12 |  |  | .clsPad { color:#000000; background:#ffffff; padding:6px; } | 
| 13 |  |  | .monoSpc { font-family:monospace; font-size:12px; } | 
| 14 |  |  | .monoSpc2 { font-family:monospace; font-size:18px; } | 
| 15 |  |  | .clsNav { font-family:verdana,arial,sans-serif; font-size:12px; color:#666666; background:#cccccc; margin:0px; padding:2px; } | 
| 16 |  |  | .clsTitle { font-family:verdana,arial,sans-serif; font-size:14px; color:#3333ff; margin:0px; padding:2px; background:#cccccc; } | 
| 17 |  |  | </style> | 
| 18 |  |  | <script type='text/javascript' src='cbe_core.js'></script> | 
| 19 |  |  | <script type='text/javascript' src='cbe_event.js'></script> | 
| 20 |  |  | <script type='text/javascript' src='cbe_util.js'></script> | 
| 21 |  |  | <script type='text/javascript' src='cbe_debug.js'> </script> | 
| 22 |  |  | <script type='text/javascript'><!-- | 
| 23 |  |  | var f1,f2,f3,f4,previousId="",oos=false; | 
| 24 |  |  | function windowOnload() { | 
| 25 |  |  | window.focus(); | 
| 26 |  |  | window.onerror = outOfSync; | 
| 27 |  |  | f1 = document.forms['form1']; | 
| 28 |  |  | f2 = document.forms['form2']; | 
| 29 |  |  | f3 = document.forms['form3']; | 
| 30 |  |  | f4 = document.forms['form4']; | 
| 31 |  |  | f2.reset(); | 
| 32 |  |  | f3.reset(); | 
| 33 |  |  | f4.reset(); | 
| 34 |  |  | timedUpdate(); | 
| 35 |  |  | } | 
| 36 |  |  | function outOfSync() { | 
| 37 |  |  | oos = true; | 
| 38 |  |  | f1.reset(); | 
| 39 |  |  | f2.t1.value = f1.t1.value = f1.t10.value = f1.t20.value = "Out Of Sync"; | 
| 40 |  |  | setMsg("Out Of Sync"); | 
| 41 |  |  | window.close(); | 
| 42 |  |  | } | 
| 43 |  |  | function inst(idInstance) { | 
| 44 |  |  | if (!window.opener || !window.opener.cbeDebugSelected) { | 
| 45 |  |  | outOfSync(); | 
| 46 |  |  | return; | 
| 47 |  |  | } | 
| 48 |  |  | if (!idInstance) idInstance = 'idWindow'; | 
| 49 |  |  | window.opener.cbeDebugSetSelected(idInstance); | 
| 50 |  |  | } | 
| 51 |  |  | function timedUpdate() { | 
| 52 |  |  | if (oos) return; | 
| 53 |  |  | else setTimeout("timedUpdate()", 750); | 
| 54 |  |  | if (window.opener) { | 
| 55 |  |  | if (window.opener.cbeDebugSelected && window.opener.cbeDebugObj) { | 
| 56 |  |  | var thisId = window.opener.cbeDebugObj.id; | 
| 57 |  |  | f1.t1.value = thisId; | 
| 58 |  |  | f1.t2.value = window.opener.cbeDebugObj.left; | 
| 59 |  |  | f1.t3.value = window.opener.cbeDebugObj.top; | 
| 60 |  |  | f1.t4.value = window.opener.cbeDebugObj.zIndex; | 
| 61 |  |  | f1.t5.value = window.opener.cbeDebugObj.pageX; | 
| 62 |  |  | f1.t6.value = window.opener.cbeDebugObj.pageY; | 
| 63 |  |  | f1.t7.value = window.opener.cbeDebugObj.offsetLeft; | 
| 64 |  |  | f1.t8.value = window.opener.cbeDebugObj.offsetTop; | 
| 65 |  |  | f1.t9.value = window.opener.cbeDebugObj.scrollLeft; | 
| 66 |  |  | f1.t10.value = window.opener.cbeDebugObj.scrollTop; | 
| 67 |  |  | f1.t11.value = window.opener.cbeDebugObj.width; | 
| 68 |  |  | f1.t12.value = window.opener.cbeDebugObj.height; | 
| 69 |  |  | f1.t13.value = window.opener.cbeDebugObj.visibility || ""; | 
| 70 |  |  | f1.t14.value = window.opener.cbeDebugObj.color || ""; | 
| 71 |  |  | f1.t15.value = window.opener.cbeDebugObj.background || ""; | 
| 72 |  |  | f1.t16.value = window.opener.cbeDebugObj.parentNode || ""; | 
| 73 |  |  | f1.t17.value = window.opener.cbeDebugObj.previousSibling || ""; | 
| 74 |  |  | f1.t18.value = window.opener.cbeDebugObj.nextSibling || ""; | 
| 75 |  |  | f1.t19.value = window.opener.cbeDebugObj.childNodes || ""; | 
| 76 |  |  | f1.t20.value = window.opener.cbeDebugObj.firstChild || ""; | 
| 77 |  |  | f1.t21.value = window.opener.cbeDebugObj.lastChild || ""; | 
| 78 |  |  | if (previousId != thisId) { | 
| 79 |  |  | previousId = thisId; | 
| 80 |  |  | } | 
| 81 |  |  | return; | 
| 82 |  |  | } | 
| 83 |  |  | } | 
| 84 |  |  | outOfSync(); | 
| 85 |  |  | } | 
| 86 |  |  | var sTree; | 
| 87 |  |  | function printTree() { | 
| 88 |  |  | sTree = ""; | 
| 89 |  |  | window.opener.cbeTraverseTree('preorder', window.opener.self.cbe, printTreeVF); | 
| 90 |  |  | document.write(sTree); | 
| 91 |  |  | } | 
| 92 |  |  | var levelFlag = new Array(); | 
| 93 |  |  | for (var i=0; i<window.opener.cbeAll.length; ++i) levelFlag[i] = false; | 
| 94 |  |  | function printTreeVF(node, level, branch) { | 
| 95 |  |  | levelFlag[level] = node.nextSibling ? true : false; | 
| 96 |  |  | for (var i=0; i < level-1; ++i) { | 
| 97 |  |  | if (levelFlag[i+1]) sTree += '| '; | 
| 98 |  |  | else sTree += '  '; | 
| 99 |  |  | } | 
| 100 |  |  | if (level) { | 
| 101 |  |  | if (!node.nextSibling) sTree += "|_"; | 
| 102 |  |  | else if (node.childNodes) sTree += "|_"; | 
| 103 |  |  | else sTree += "|_"; | 
| 104 |  |  | } | 
| 105 |  |  | sTree += "<a href=\"javascript:inst('" + node.id+ "')\">" + node.id + "</a><br>"; | 
| 106 |  |  | return true; | 
| 107 |  |  | } | 
| 108 |  |  |  | 
| 109 |  |  | function cmdLine(formNum) { | 
| 110 |  |  | if (window.opener.cbeDebugObj) { | 
| 111 |  |  | if (formNum == 2) { | 
| 112 |  |  | window.opener.cbeDebugObj.cmdLine = "cbeGetElementById('" + f1.t1.value + "').cbe." + f2.t1.value; | 
| 113 |  |  | f2.t1.focus(); | 
| 114 |  |  | f2.t1.select(); | 
| 115 |  |  | } | 
| 116 |  |  | else { | 
| 117 |  |  | window.opener.cbeDebugObj.cmdLine = f4.t1.value; | 
| 118 |  |  | f4.t1.focus(); | 
| 119 |  |  | f4.t1.select(); | 
| 120 |  |  | } | 
| 121 |  |  | } | 
| 122 |  |  | return false; | 
| 123 |  |  | } | 
| 124 |  |  |  | 
| 125 |  |  | function setMsg(s) { | 
| 126 |  |  | f3.t1.value += s + '\n'; | 
| 127 |  |  | } | 
| 128 |  |  | //--></script> | 
| 129 |  |  | </head> | 
| 130 |  |  |  | 
| 131 |  |  | <body marginwidth='0' marginheight='0'><a name="topofpage"></a> | 
| 132 |  |  |  | 
| 133 |  |  | <table width='100%' border='0' cellspacing='0' cellpadding='4'><tr><td class='clsTitle'><b>Objects</b></td> | 
| 134 |  |  | <td class='clsTitle' align='right'> | 
| 135 |  |  | <a href="#topofpage" title="Objects"> O </a> | 
| 136 |  |  | <a href="#cmdLineLink" title="Command Line"> C </a> | 
| 137 |  |  | <a href="#propertiesLink" title="Properties"> P </a> | 
| 138 |  |  | <a href="#msgsLink" title="Messages"> M </a> | 
| 139 |  |  | </td></tr></table> | 
| 140 |  |  | <div class='clsPad'> | 
| 141 |  |  | <p class='monoSpc'> | 
| 142 |  |  | <script type='text/javascript'>printTree()</script> | 
| 143 |  |  | </p> | 
| 144 |  |  | </div> <!-- end clsPad --> | 
| 145 |  |  |  | 
| 146 |  |  | <a name='cmdLineLink'></a> | 
| 147 |  |  | <table width='100%' border='0' cellspacing='0' cellpadding='4'><tr><td class='clsTitle'><b>Cmd Line</b></td> | 
| 148 |  |  | <td class='clsTitle' align='right'> | 
| 149 |  |  | <a href="#topofpage" title="Objects"> O </a> | 
| 150 |  |  | <a href="#cmdLineLink" title="Command Line"> C </a> | 
| 151 |  |  | <a href="#propertiesLink" title="Properties"> P </a> | 
| 152 |  |  | <a href="#msgsLink" title="Messages"> M </a> | 
| 153 |  |  | </td></tr></table> | 
| 154 |  |  | <div class='clsPad'> | 
| 155 |  |  | <form name='form2' onsubmit='return cmdLine(2)'> | 
| 156 |  |  | CBE Method:<br> | 
| 157 |  |  | <input name='t1' type='text' size='14' value='' class='monoSpc'> | 
| 158 |  |  | <input type='submit' value='Call'> | 
| 159 |  |  | </form> <!-- end form form2 --> | 
| 160 |  |  |  | 
| 161 |  |  | <form name='form4' onsubmit='return cmdLine(4)'> | 
| 162 |  |  | Expression:<br> | 
| 163 |  |  | <input name='t1' type='text' size='14' value='' class='monoSpc'> | 
| 164 |  |  | <input type='submit' value='Eval'> | 
| 165 |  |  | </form> <!-- end form form4 --> | 
| 166 |  |  |  | 
| 167 |  |  | </div> <!-- end clsPad --> | 
| 168 |  |  |  | 
| 169 |  |  | <a name='propertiesLink'></a> | 
| 170 |  |  | <table width='100%' border='0' cellspacing='0' cellpadding='4'><tr><td class='clsTitle'><b>Properties</b></td> | 
| 171 |  |  | <td class='clsTitle' align='right'> | 
| 172 |  |  | <a href="#topofpage" title="Objects"> O </a> | 
| 173 |  |  | <a href="#cmdLineLink" title="Command Line"> C </a> | 
| 174 |  |  | <a href="#propertiesLink" title="Properties"> P </a> | 
| 175 |  |  | <a href="#msgsLink" title="Messages"> M </a> | 
| 176 |  |  | </td></tr></table> | 
| 177 |  |  | <div class='clsPad'> | 
| 178 |  |  | <form name='form1' onsubmit='return false'> | 
| 179 |  |  | <table border='0' cellspacing='0' cellpadding='2'> | 
| 180 |  |  | <tr><td><b>id</b>      <br><input name='t1' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 181 |  |  | <tr><td>left()         <br><input name='t2' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 182 |  |  | <tr><td>top()          <br><input name='t3' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 183 |  |  | <tr><td>pageX()        <br><input name='t5' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 184 |  |  | <tr><td>pageY()        <br><input name='t6' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 185 |  |  | <tr><td>offsetLeft()   <br><input name='t7' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 186 |  |  | <tr><td>offsetTop()    <br><input name='t8' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 187 |  |  | <tr><td>scrollLeft()   <br><input name='t9' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 188 |  |  | <tr><td>scrollTop()    <br><input name='t10' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 189 |  |  | <tr><td>width()        <br><input name='t11' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 190 |  |  | <tr><td>height()       <br><input name='t12' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 191 |  |  | <tr><td>zIndex()       <br><input name='t4' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 192 |  |  | <tr><td>visibility()   <br><input name='t13' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 193 |  |  | <tr><td>color()        <br><input name='t14' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 194 |  |  | <tr><td>background()   <br><input name='t15' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 195 |  |  | <tr><td>parentNode.id  <br><input name='t16' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 196 |  |  | <tr><td>previousSibling.id<br><input name='t17' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 197 |  |  | <tr><td>nextSibling.id <br><input name='t18' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 198 |  |  | <tr><td>childNodes     <br><input name='t19' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 199 |  |  | <tr><td>firstChild.id  <br><input name='t20' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 200 |  |  | <tr><td>lastChild.id   <br><input name='t21' type='text' size='14' value='' class='monoSpc'></td></tr> | 
| 201 |  |  | </table> | 
| 202 |  |  | </form> <!-- end form form1 --> | 
| 203 |  |  | </div> <!-- end clsPad --> | 
| 204 |  |  |  | 
| 205 |  |  | <a name='msgsLink'></a> | 
| 206 |  |  | <table width='100%' border='0' cellspacing='0' cellpadding='4'><tr><td class='clsTitle'><b>Messages</b></td> | 
| 207 |  |  | <td class='clsTitle' align='right'> | 
| 208 |  |  | <a href="#topofpage" title="Objects"> O </a> | 
| 209 |  |  | <a href="#cmdLineLink" title="Command Line"> C </a> | 
| 210 |  |  | <a href="#propertiesLink" title="Properties"> P </a> | 
| 211 |  |  | <a href="#msgsLink" title="Messages"> M </a> | 
| 212 |  |  | </td></tr></table> | 
| 213 |  |  | <div class='clsPad'> | 
| 214 |  |  | <form name='form3' onsubmit='return false'> | 
| 215 |  |  | Messages:<br> | 
| 216 |  |  | <textarea name='t1' class='monoSpc' rows='30' cols='14'></textarea> | 
| 217 |  |  | </form> <!-- end form form3 --> | 
| 218 |  |  | </div> <!-- end clsPad --> | 
| 219 |  |  |  | 
| 220 |  |  | </body> | 
| 221 |  |  | </html> |