ïż
function runDebug(){
setTimeout("displayStepNo()", 1000);
setTimeout("displayPageStatus()", 1000);
setTimeout("displayPageStatus()", 1000);
setTimeout("displayPageVariables()", 1000);
setTimeout("updateLog()", 1000);
getPageStatuses();
}
function getPageStatuses(){
document.getElementById("pageName").value=parent.frames.content.page.id;
document.getElementById("pageType").value=parent.frames.content.page.pageType;
document.getElementById("pageStatus").value=parent.frames.content.page.pageStatus;
document.getElementById("pageScore").value=parent.frames.content.lms.getPoints();
}
function displayStepNo(){
document.getElementById("step").value=(parent.frames.content.page.stepIndex-1);
setTimeout("displayStepNo()", 500);
}
function displayPageStatus(){
document.getElementById("pageStatus").value=parent.frames.content.lms.getStatus();
setTimeout("displayPageStatus()", 1000);
}
function displayPagepoints(){
document.getElementById("pageScore").value=parent.frames.content.lms.getPoints();
setTimeout("displayPagepoints()", 1000);
}
function displayPageVariables(){
var v=parent.frames.content.me;
for (var k in v) {
document.getElementById("var__"+k).value=v[k].toString();
}
setTimeout("displayPageVariables()", 1000);
}
function executeCommand(){
eval("parent.frames.content."+document.getElementById("cmd").value);
}
function updateLog(){
document.getElementById("log").innerHTML=parent.frames.content.log.m_debugLog;
setTimeout("updateLog()", 1000);
}
page name:
page type:
page status:
page score:
page step:
User variables
var v=parent.frames.content.me;
for (var k in v) {
document.write(''+k+': ');
}
Command line:
Logs:
Wyszukiwarka
Podobne podstrony:
debugDebug Guides V3debugdebugmanifest merger debug reportdebugfunction debug backtracedebugdebug otsexplore2fs debug logDebug guide level 3 W220debugdebugDisable Debug Scripting in Internet Explorer (2)debug2009 06 Bug Bumper Get Started with Strace and Debug FasterCMSIS debug supportdebug tswięcej podobnych podstron