rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null;
file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); draggingBreakpoint.started = true; var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled");
var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled");
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
sourcesDocument.body.style.cursor = null;
sourcesDocument.body.style.removeProperty("cursor");
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var lineNum = draggingBreakpoint.title; var file = files[currentFile]; var breakpoint = file.breakpoints[lineNum]; draggingBreakpoint.breakpoint = breakpoint; breakpoint.row.removeStyleClass("breakpoint"); breakpoint.row.removeStyleClass("disabled"); var editor = breakpoint.editor; if (editor) toggleBreakpointEditorOnLine(lineNum); draggingBreakpoint.started = true; file.breakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.breakpoint.enabled) dragImage.src = "breakPoint.tif"; else dragImage.src = "breakPointDisabled.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
dragImage.style.visibility = null;
dragImage.style.removeProperty("visibility");
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var lineNum = draggingBreakpoint.title; var file = files[currentFile]; var breakpoint = file.breakpoints[lineNum]; draggingBreakpoint.breakpoint = breakpoint; breakpoint.row.removeStyleClass("breakpoint"); breakpoint.row.removeStyleClass("disabled"); var editor = breakpoint.editor; if (editor) toggleBreakpointEditorOnLine(lineNum); draggingBreakpoint.started = true; file.breakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.breakpoint.enabled) dragImage.src = "breakPoint.tif"; else dragImage.src = "breakPointDisabled.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title);
var lineNum = draggingBreakpoint.title;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; }
var breakpoint = file.breakpoints[lineNum]; draggingBreakpoint.breakpoint = breakpoint; breakpoint.row.removeStyleClass("breakpoint"); breakpoint.row.removeStyleClass("disabled"); var editor = breakpoint.editor; if (editor) toggleBreakpointEditorOnLine(lineNum);
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum];
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
file.disabledBreakpoints[lineNum] = null;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
if (draggingBreakpoint.isDisabled)
if (draggingBreakpoint.breakpoint.enabled) dragImage.src = "breakPoint.tif"; else
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
else dragImage.src = "breakPoint.tif";
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX;
function breakpointDragEnd(event){ var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); if (x > 40 || !draggingBreakpoint) return; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (!row) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
var sourcesDocument = document.getElementById("sources").contentDocument;
function breakpointDragEnd(event){ var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); if (x > 40 || !draggingBreakpoint) return; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (!row) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
if (!row)
if (row <= 0)
function breakpointDragEnd(event){ var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); if (x > 40 || !draggingBreakpoint) return; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (!row) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
if (!tr) return;
function breakpointDragEnd(event){ var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); if (x > 40 || !draggingBreakpoint) return; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (!row) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
addStyleClass(tr, "disabled");
tr.addStyleClass("disabled");
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if(draggingBreakpoint.isDisabled) { addStyleClass(tr, "disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } addStyleClass(tr, "breakpoint"); draggingBreakpoint = null;}
addStyleClass(tr, "breakpoint");
tr.addStyleClass("breakpoint");
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if(draggingBreakpoint.isDisabled) { addStyleClass(tr, "disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } addStyleClass(tr, "breakpoint"); draggingBreakpoint = null;}
if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled");
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1);
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
sourcesDocument.body.style.cursor = null;
sourcesDocument.body.style.removeProperty("cursor");
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; var breakpoint = draggingBreakpoint.breakpoint; breakpoint.row = tr; // leave the editor there if it exists... we'll want to update it to the new values breakpoint.editor = file.breakpoints[row].editor; file.breakpoints[row] = breakpoint; if (breakpoint.editor) { breakpoint.editor.id = row; updateBreakpointTypeOnLine(row); setConditionFieldText(breakpoint); } if (!breakpoint.enabled) tr.addStyleClass("disabled"); tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
if (breakpoint.editor) { breakpoint.editor.id = row; updateBreakpointTypeOnLine(row); setConditionFieldText(breakpoint); }
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; var breakpoint = draggingBreakpoint.breakpoint; breakpoint.row = tr; file.breakpoints[row] = breakpoint; if (!breakpoint.enabled) tr.addStyleClass("disabled"); tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
if (draggingBreakpoint.isDisabled) {
var breakpoint = draggingBreakpoint.breakpoint; breakpoint.row = tr; file.breakpoints[row] = breakpoint; if (!breakpoint.enabled)
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) { tr.addStyleClass("disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; }
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) { tr.addStyleClass("disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1));
this.rgb = OpenLayers.Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1));
brighten: function(percent) { var hsb = this.asHSB(); this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1)); },
document.getElementById( 'browse_lastdir' ).value;
function browse( dest ){ document.getElementById( 'browse_dest' ).value = dest; browse_dir( document.getElementById( 'browse_lastdir' ).value ); show( 'browse' );}
loadXMLDoc( 'requests/browse.xml?dir='+escape(dir), parse_browse_dir );
loadXMLDoc( 'requests/browse.xml?dir='+encodeURIComponent(dir), parse_browse_dir );
function browse_dir( dir ){ document.getElementById( 'browse_lastdir' ).value = dir; loadXMLDoc( 'requests/browse.xml?dir='+escape(dir), parse_browse_dir );}
loadXMLDoc( 'requests/browse.xml?dir='+dir, parse_browse_dir );
loadXMLDoc( 'requests/browse.xml?dir='+escape(dir), parse_browse_dir );
function browse_dir( dir ){ document.getElementById( 'browse_lastdir' ).value = dir; loadXMLDoc( 'requests/browse.xml?dir='+dir, parse_browse_dir );}
this.nextPromptResult = '';
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
this.recordPageLoad = function() {
this.recordPageLoad = function(elementOrWindow) {
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
LOG.debug("Page load location=" + self.getCurrentWindow(true).location);
if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); }
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location);
LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; }
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected, location=" + self.getCurrentWindow().location); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
if (this.pageLoadError) throw this.pageLoadError;
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected, location=" + self.getCurrentWindow().location); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
BrowserBot = function(frame) {
var BrowserBot = function(frame) {
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) throw this.pageLoadError; return self.newPageLoaded; };};
LOG.debug("Page load detected");
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location);
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
this.shouldHighlightLocatedElement = false;
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; this.baseUrl=window.location.href; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { LOG.error("isNewPageLoaded found an old pageLoadError"); var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
LOG.error("isNewPageLoaded found an old pageLoadError");
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e);
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
this.buttonWindow = this.topWindow;
this.buttonWindow = window;
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; this.baseUrl=window.location.href; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.shouldHighlightLocatedElement = false; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); // DGF for backwards compatibility this.browserbot = this; var self = this; objectExtend(this, PageBot.prototype); this._registerAllLocatorFunctions(); this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { LOG.error("isNewPageLoaded found an old pageLoadError"); var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
this.openedWindows = {};
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.nextConfirmResult = true;};
this.metaKeyDown = false;
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
if (this.topWindow && this.topWindow.location) { this.baseUrl=this.topWindow.location.href; }
this.baseUrl=window.location.href;
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; if (this.topWindow && this.topWindow.location) { this.baseUrl=this.topWindow.location.href; } // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { LOG.error("isNewPageLoaded found an old pageLoadError"); var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
if (/^chrome:\/\ self.isChrome = true; } else { self.isChrome = false; }
var BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } var self = this; var checkChrome = function() { var loc = window.document.location.href; try { loc = window.top.document.location.href; } catch (e) { // can't see the top (that means we might be chrome, but it's impossible to be sure) self.isChromeDetectable = "no, top location couldn't be read in this window"; } if (/^chrome:\/\//.test(loc)) { self.isChrome = true; } else { self.isChrome = false; } } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } if ("0" == navigator.appMinorVersion) { this.preSV1 = true; if (navigator.appVersion.match(/MSIE 6.0/)) { this.appearsToBeBrokenInitialIE6 = true; } } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; } checkChrome(); return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; checkChrome(); return; } this.browser = BrowserVersion.UNKNOWN;}
if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true;
try { if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } } catch (e) { this.isHTADetectable = "no, top location couldn't be read in this window"; if (_getQueryParameter('thisIsHTA')) { self.isHTA = true; } else { self.isHTA = false; }
var BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } var self = this; var checkChrome = function() { var loc = window.document.location.href; try { loc = window.top.document.location.href; } catch (e) { // can't see the top (that means we might be chrome, but it's impossible to be sure) self.isChromeDetectable = "no, top location couldn't be read in this window"; } if (/^chrome:\/\//.test(loc)) { self.isChrome = true; } else { self.isChrome = false; } } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } if ("0" == navigator.appMinorVersion) { this.preSV1 = true; if (navigator.appVersion.match(/MSIE 6.0/)) { this.appearsToBeBrokenInitialIE6 = true; } } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; } checkChrome(); return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; checkChrome(); return; } this.browser = BrowserVersion.UNKNOWN;}
if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; }
BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; return; } this.browser = BrowserVersion.UNKNOWN;}
if (navigator.appVersion.match(/MSIE 6.0/)) { this.appearsToBeBrokenInitialIE6 = true; }
var BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } var self = this; var checkChrome = function() { var loc = window.document.location.href; try { loc = window.top.document.location.href; } catch (e) { // can't see the top (that means we might be chrome, but it's impossible to be sure) self.isChromeDetectable = "no, top location couldn't be read in this window"; } if (/^chrome:\/\//.test(loc)) { self.isChrome = true; } else { self.isChrome = false; } } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } if ("0" == navigator.appMinorVersion) { this.preSV1 = true; } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; } checkChrome(); return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; checkChrome(); return; } this.browser = BrowserVersion.UNKNOWN;}
var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; }
BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; return; } this.browser = BrowserVersion.UNKNOWN;}
checkChrome();
BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } if ("0" == navigator.appMinorVersion) { this.preSV1 = true; } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; } return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; return; } this.browser = BrowserVersion.UNKNOWN;}
var baseUrl = window.location.href.substring(0, lastSlash+1);
baseUrl = window.location.href.substring(0, lastSlash+1);
function buildBaseUrl() { var lastSlash = window.location.href.lastIndexOf('/'); var baseUrl = window.location.href.substring(0, lastSlash+1); return baseUrl;}
var host = runOptions.getDriverHost(); var port = runOptions.getDriverPort(); if (host != undefined && port != undefined) { params = params + "&driverhost=" + host + "&driverport=" + port; }
function buildDriverParams() { var params = ""; var host = runOptions.getDriverHost(); var port = runOptions.getDriverPort(); if (host != undefined && port != undefined) { params = params + "&driverhost=" + host + "&driverport=" + port; } var sessionId = runOptions.getSessionId(); if (sessionId == undefined) { sessionId = injectedSessionId; } if (sessionId != undefined) { params = params + "&sessionId=" + sessionId; } return params;}
if (!Event.isLeftClick(evt)) return;
buttonClick: function(evt) { this.switchModeTo(evt.div.action); Event.stop(evt); },
if (!Event.isLeftClick(evt)) return;
buttonDown: function (evt) { var slide = this.map.getResolution() * this.slideFactor; var center = this.map.getCenter(); var newCenter = center.copyOf(); switch (this.action) { case "panup": newCenter = newCenter.add( 0, slide); break; case "pandown": newCenter = newCenter.add( 0, -slide); break; case "panleft": newCenter = newCenter.add( -slide, 0); break; case "panright": newCenter = newCenter.add( slide, 0); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomworld": this.map.zoomToFullExtent(); break; } if (!newCenter.equals(center)) { this.map.setCenter(newCenter); } Event.stop(evt); },
case "zoomextents": this.map.zoomExtent(); break;
case "zoomworld": this.map.zoomExtent(); break;
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon, center.lat + (resolution * 50)) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon, center.lat - (resolution * 50)) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon - (resolution * 50), center.lat) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon + (resolution * 50), center.lat) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); },
new OpenLayers.LatLon(center.lat + (reslution * 50),
new OpenLayers.LatLon(center.lat + (resolution * 50),
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat + (reslution * 50), center.lon ) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat - (reslution * 50), center.lon ) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon - (resolution * 50) ) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon + (resolution * 50) ) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); }
new OpenLayers.LatLon(center.lat - (reslution * 50),
new OpenLayers.LatLon(center.lat - (resolution * 50),
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat + (reslution * 50), center.lon ) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat - (reslution * 50), center.lon ) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon - (resolution * 50) ) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon + (resolution * 50) ) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); }
function BX_add_tagWithAttributes(tag,content,attributes) { var element = BX_xml.createElementNS("http: element.appendChild(BX_xml.createTextNode(content));
function BX_add_tagWithAttributes(tag,content,attributes) { var element = BX_xml.doc.createElement(tag); element.appendChild(BX_xml.doc.createTextNode(content));
function BX_add_tagWithAttributes(tag,content,attributes){ var element = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",tag); element.appendChild(BX_xml.createTextNode(content)); for (var attName in attributes) { element.setAttribute(attName,attributes[attName]); } element.setAttribute("id","BX_id_"+BX_id_counter); element.setAttribute("internalid",'yes'); BX_id_counter++; BX_insertContent(element); BX_scrollToCursor(element); BX_selection.selectAllChildren(element); BX_update_buttons = true;}
element.setAttribute("internalid",'yes');
element.setAttribute("bxe_internalid",'yes');
function BX_add_tagWithAttributes(tag,content,attributes){ var element = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",tag); element.appendChild(BX_xml.createTextNode(content)); for (var attName in attributes) { element.setAttribute(attName,attributes[attName]); } element.setAttribute("id","BX_id_"+BX_id_counter); element.setAttribute("internalid",'yes'); BX_id_counter++; BX_insertContent(element); BX_scrollToCursor(element); BX_selection.selectAllChildren(element); BX_update_buttons = true;}
document.getElementById("transformLocation").addEventListener("mouseup", BX_RangeCaptureOnMouseUp, false);
function BX_addEvents(){ document.addEventListener("keypress",BX_keypress,false); document.addEventListener("keyup",BX_onkeyup,false); // var allSpans = document.getElementsByName("bitfluxspan"); /* for (i = 0; i < allSpans.length; i ++) { allSpans[i].addEventListener("mouseup", BX_RangeCaptureOnMouseUp, false); }*/ document.getElementById("transformLocation").addEventListener("mouseup", BX_RangeCaptureOnMouseUp, false);}
if(docu.documentElement.nodeName=="parsererror")
if(docu.documentElement && docu.documentElement.nodeName=="parsererror")
function BX_alert_checkParserError(docu){ if(docu.documentElement.nodeName=="parsererror") { var alerttext = "Parse Error: \n \n"; alerttext += docu.documentElement.firstChild.data +"\n\n"; alerttext += "Sourcetext:\n\n"; alerttext += docu.documentElement.childNodes[1].firstChild.data; alert(alerttext); return false; } return true;}
catch(e) { return false;}
function BX_beginDrag(e) { // this try is needed for Mozilla 1.1, which can't acces e.target.parentNode within a textarea try { if (! ((e.target.parentNode.nodeType == e.target.parentNode.ELEMENT_NODE && e.target.parentNode.getAttribute("dragable") == "yes") || (e.target.nodeType == e.target.ELEMENT_NODE && e.target.getAttribute("dragable") == "yes"))) { return false; } } catch(e) { return false;} // Stores the current mouse position window.lastX=e.clientX; window.lastY=e.clientY; window.BX_popupLeft= BX_popup.offsetLeft; window.BX_popupTop= BX_popup.offsetTop ; // Registering doDrag event handler to receive onmousemove events. window.onmousemove=BX_doDrag; // Registering endDrag event handler to receive onmouseup events. window.onmouseup=BX_endDrag;}
function BX_clean_nodelist(xml) { if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*");
function BX_clean_nodelist(xml) { if (xml) { xml.BX_xml_nodelist = xml.getElementsByTagName("*"); } else { this.BX_xml_nodelist = this.getElementsByTagName("*");
function BX_clean_nodelist(xml){ if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*"); }}
function BX_clearInfoError() { BX_infoerror.innerHTML = "";
function BX_clearInfoError() { BX_innerHTML(BX_infoerror,"");
function BX_clearInfoError(){ BX_infoerror.innerHTML = ""; BX_infoerror_timeout = false;}
BX_no_events = true;
function BX_clipboard_open(){ if (BX_range) { BX_popup_start("Clipboard",400,0); var html = ' <center class="text"><form id="bx_form_clipboard" name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onclick=\'BX_clipboard_insertCDATA()\' />&#160;<br/>'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="50" rows="20"></textarea><br/>\n'; html += '<input xmlns="http://www.w3.org/1999/xhtml" class="text" type="button" value="Insert" onclick="BX_clipboard_copyToBX_clipboard();BX_copy_paste();BX_transform();" />\n'; // html += '<input class="text" type="button" value="only copy" onClick="BX_clipboard_copyToBX_clipboard();">'; var current_node_name = BX_getCurrentNodeName(BX_range.startContainer); if (BX_elements[current_node_name] && ! BX_elements[current_node_name]["noAddParas"]) { html += '<input class="text" name="addparas" checked="checked" type="checkbox" />Add Paras'; } html += '</form></center>'; BX_popup_addHtml(html); if(BX_clipboard ) { document.getElementById("bx_form_clipboard").text.value = calculateMarkup(BX_clipboard,true); } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.getElementById("bx_form_clipboard").text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
var result = BX_config.evaluate(xpath, BX_config, null, 0, null);
var result = BX_config.doc.evaluate(xpath, BX_config.doc, null, 0, null);
function BX_config_getContent(xpath){ var result = BX_config.evaluate(xpath, BX_config, null, 0, null); node = result.iterateNext(); return BX_config_translateUrl(node);}
var result = BX_config.evaluate(xpath, BX_config, null, 0, null);
var result = BX_config.doc.evaluate(xpath, BX_config.doc, null, 0, null);
function BX_config_getContentMultiple(xpath){ var result = BX_config.evaluate(xpath, BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; while (node = result.iterateNext()) { resultArray[i] = BX_config_translateUrl(node); i++; } return resultArray;}
function BX_config_getNodes(xpath) { var result = BX_config.evaluate(xpath, BX_config, null, 0, null);
function BX_config_getNodes(xpath) { var result = BX_config.doc.evaluate(xpath, BX_config.doc, null, 0, null);
function BX_config_getNodes(xpath){ var result = BX_config.evaluate(xpath, BX_config, null, 0, null); return result;}
BX_config_setLoadMessage("Config file had errors...");
BXEui.lm.set("Config file had errors...");
function BX_config_loaded(){ try { if (! BX_alert_checkParserError(BX_config)) { BX_config_setLoadMessage("Config file had errors..."); return false; } BX_config_createURLParams(); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); head.appendChild(scr); } // then load js files from config.xml var scripts = BX_config_getContentMultiple("/config/files/scripts/file"); for (var i=0; i < scripts.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",scripts[i]); scr.setAttribute("language","JavaScript"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded if (i == scripts.length - 1) { scr.setAttribute('onload', 'try{BX_init()} catch(e) { BX_init_alert(e)}'); } head.appendChild(scr); } // now the css files var css = BX_config_getContentMultiple("/config/files/css/file"); for (var i=0; i < css.length; i++) { var scr = document.createElement("link"); scr.setAttribute("href",css[i]); scr.setAttribute("rel","stylesheet"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded head.appendChild(scr); } } catch(e) { BX_init_alert(e); }}
BX_config_createURLParams();
function BX_config_loaded(){ try { if (! BX_alert_checkParserError(BX_config)) { BX_config_setLoadMessage("Config file had errors..."); return false; } BX_config_createURLParams(); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); head.appendChild(scr); } // then load js files from config.xml var scripts = BX_config_getContentMultiple("/config/files/scripts/file"); for (var i=0; i < scripts.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",scripts[i]); scr.setAttribute("language","JavaScript"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded if (i == scripts.length - 1) { scr.setAttribute('onload', 'try{BX_init()} catch(e) { BX_init_alert(e)}'); } head.appendChild(scr); } // now the css files var css = BX_config_getContentMultiple("/config/files/css/file"); for (var i=0; i < css.length; i++) { var scr = document.createElement("link"); scr.setAttribute("href",css[i]); scr.setAttribute("rel","stylesheet"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded head.appendChild(scr); } } catch(e) { BX_init_alert(e); }}
for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); head.appendChild(scr); }
function BX_config_loaded(){ try { if (! BX_alert_checkParserError(BX_config)) { BX_config_setLoadMessage("Config file had errors..."); return false; } BX_config_createURLParams(); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); head.appendChild(scr); } // then load js files from config.xml var scripts = BX_config_getContentMultiple("/config/files/scripts/file"); for (var i=0; i < scripts.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",scripts[i]); scr.setAttribute("language","JavaScript"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded if (i == scripts.length - 1) { scr.setAttribute('onload', 'try{BX_init()} catch(e) { BX_init_alert(e)}'); } head.appendChild(scr); } // now the css files var css = BX_config_getContentMultiple("/config/files/css/file"); for (var i=0; i < css.length; i++) { var scr = document.createElement("link"); scr.setAttribute("href",css[i]); scr.setAttribute("rel","stylesheet"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded head.appendChild(scr); } } catch(e) { BX_init_alert(e); }}
var scr = document.createElement("script");
var scr = document.createElementNS("http:
function BX_config_loaded(){ try { if (! BX_alert_checkParserError(BX_config)) { BX_config_setLoadMessage("Config file had errors..."); return false; } BX_config_createURLParams(); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); head.appendChild(scr); } // then load js files from config.xml var scripts = BX_config_getContentMultiple("/config/files/scripts/file"); for (var i=0; i < scripts.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",scripts[i]); scr.setAttribute("language","JavaScript"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded if (i == scripts.length - 1) { scr.setAttribute('onload', 'try{BX_init()} catch(e) { BX_init_alert(e)}'); } head.appendChild(scr); } // now the css files var css = BX_config_getContentMultiple("/config/files/css/file"); for (var i=0; i < css.length; i++) { var scr = document.createElement("link"); scr.setAttribute("href",css[i]); scr.setAttribute("rel","stylesheet"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded head.appendChild(scr); } } catch(e) { BX_init_alert(e); }}
scr.setAttribute('onload', 'try{BX_init()} catch(e) { BX_init_alert(e)}');
scr.setAttribute('onload', 'try{BX_init()} catch(e) { BXEui.newObject("initAlert",e)}');
function BX_config_loaded(){ try { if (! BX_alert_checkParserError(BX_config)) { BX_config_setLoadMessage("Config file had errors..."); return false; } BX_config_createURLParams(); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); head.appendChild(scr); } // then load js files from config.xml var scripts = BX_config_getContentMultiple("/config/files/scripts/file"); for (var i=0; i < scripts.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",scripts[i]); scr.setAttribute("language","JavaScript"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded if (i == scripts.length - 1) { scr.setAttribute('onload', 'try{BX_init()} catch(e) { BX_init_alert(e)}'); } head.appendChild(scr); } // now the css files var css = BX_config_getContentMultiple("/config/files/css/file"); for (var i=0; i < css.length; i++) { var scr = document.createElement("link"); scr.setAttribute("href",css[i]); scr.setAttribute("rel","stylesheet"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded head.appendChild(scr); } } catch(e) { BX_init_alert(e); }}
var scr = document.createElement("link");
if (document.contentType == "text/xml") { scr = document.createProcessingInstruction("xml-stylesheet",'href="'+css[i]+'" type="text/css"'); document.insertBefore(scr,document.documentElement); } else { var scr = document.createElementNS("http:
function BX_config_loaded(){ try { if (! BX_alert_checkParserError(BX_config)) { BX_config_setLoadMessage("Config file had errors..."); return false; } BX_config_createURLParams(); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); head.appendChild(scr); } // then load js files from config.xml var scripts = BX_config_getContentMultiple("/config/files/scripts/file"); for (var i=0; i < scripts.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",scripts[i]); scr.setAttribute("language","JavaScript"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded if (i == scripts.length - 1) { scr.setAttribute('onload', 'try{BX_init()} catch(e) { BX_init_alert(e)}'); } head.appendChild(scr); } // now the css files var css = BX_config_getContentMultiple("/config/files/css/file"); for (var i=0; i < css.length; i++) { var scr = document.createElement("link"); scr.setAttribute("href",css[i]); scr.setAttribute("rel","stylesheet"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded head.appendChild(scr); } } catch(e) { BX_init_alert(e); }}
BX_init_alert(e);
BXEui.newObject("initAlert",e);
function BX_config_loaded(){ try { if (! BX_alert_checkParserError(BX_config)) { BX_config_setLoadMessage("Config file had errors..."); return false; } BX_config_createURLParams(); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); head.appendChild(scr); } // then load js files from config.xml var scripts = BX_config_getContentMultiple("/config/files/scripts/file"); for (var i=0; i < scripts.length; i++) { var scr = document.createElement("script"); scr.setAttribute("src",scripts[i]); scr.setAttribute("language","JavaScript"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded if (i == scripts.length - 1) { scr.setAttribute('onload', 'try{BX_init()} catch(e) { BX_init_alert(e)}'); } head.appendChild(scr); } // now the css files var css = BX_config_getContentMultiple("/config/files/css/file"); for (var i=0; i < css.length; i++) { var scr = document.createElement("link"); scr.setAttribute("href",css[i]); scr.setAttribute("rel","stylesheet"); // scr.setAttribute('defer', 'true'); // do the init, after the last script has loaded head.appendChild(scr); } } catch(e) { BX_init_alert(e); }}
url = BX_URLParams[node.firstChild.data];
url = BXE.urlParams[node.firstChild.data];
function BX_config_translateUrl(node){ var url; try { if (node.nodeType != 1) { //if nodeType is not a element (==1) return right away} return node.value; } } catch (e) { return ""; } if (node.getAttribute("isParam") == "true") { url = BX_URLParams[node.firstChild.data]; } else { url = node.firstChild.data; } if (node.getAttribute("prefix")) { url = node.getAttribute("prefix") + url; } return url;}
url = url.replace(/\{BX_root_dir\}/,BX_root_dir);
function BX_config_translateUrl(node){ var url; try { if (node.nodeType != 1) { //if nodeType is not a element (==1) return right away} return node.value; } } catch (e) { return ""; } if (node.getAttribute("isParam") == "true") { url = BXE.urlParams[node.firstChild.data]; } else { url = node.firstChild.data; } if (node.getAttribute("prefix")) { url = node.getAttribute("prefix") + url; } return url;}
BX_clipboard = null;
function BX_copy_paste(){ // window.defaultStatus += "paste"; BX_range.extractContents(); /*var end = BX_range.endContainer; var start = BX_range.startContainer; var endO = BX_range.endOffset; var startO = BX_range.startOffset; */ var cb = BX_clipboard.cloneNode(true); /** * there's a bug in mozilla (http://bugzilla.mozilla.org/show_bug.cgi?id=76895) * which prevents from cloning documentFragments * if the build has this bug, we just insert BX_clipboard, but then we can't insert more * than once .( * * as of 2001-04-15 it works under linux, but not under mac and windows (0.9.9) */ if(cb.xml) { BX_insertContent(cb); } else { BX_insertContent(BX_clipboard); } /* BX_range.setStart(start,startO); BX_range.setEnd(end,endO+1); BX_selection.addRange(BX_range);*/ BX_undo_save(); if (BX_range.startContainer.nodeName == "section") { BX_range.selectNodeContents(BX_range.startContainer.childNodes[0]); } // BX_cursor_update(); BX_updateButtons();}
BX_range_updateToCursor();
function BX_copy_pasteID(id,before){ var thisNode = document.getElementById(id); if (before) { var newNode = thisNode.parentNode.insertBefore(BX_clipboard.cloneNode(true),thisNode); } else { var newNode = thisNode.parentNode.insertBefore(BX_clipboard.cloneNode(true),thisNode.nextSibling); } newNode.setAttribute("id","BX_id_"+BX_id_counter); BX_id_counter++; BX_undo_save(); BX_range_updateToCursor(); BX_updateButtons();}
var stripWS = BX_selection.anchorNode.data.substring(0,BX_selection.anchorOffset).replace(/^[\t\n\r\s]*$/,"").replace(/[\t\n\r\s]{2,}$/," "); BX_selection.collapse(BX_selection.anchorNode,stripWS.length);
if (BX_selection.anchorNode.nodeType != 3) { var walker = document.createTreeWalker(document,NodeFilter.SHOW_TEXT, { acceptNode : function(node) { if ((/^[\t\n\r\s]*$/.test(node.nodeValue))) return NodeFilter.FILTER_REJECT; return NodeFilter.FILTER_ACCEPT; } } ,null); BX_selection.anchorNode.normalize(); walker.currentNode = BX_selection.anchorNode; if (BX_selection.anchorNode.hasChildNodes()) { var nextNode = walker.nextNode(); } else { var nextNode = walker.prevNode(); } var stripWS = nextNode.data.replace(/^[\t\n\r\s]*$/,"").replace(/[\t\n\r\s]{2,}$/," "); BX_selection.collapse(nextNode,stripWS.length); } else { var stripWS = BX_selection.anchorNode.data.substring(0,BX_selection.anchorOffset).replace(/^[\t\n\r\s]*$/,"").replace(/[\t\n\r\s]{2,}$/," "); BX_selection.collapse(BX_selection.anchorNode,stripWS.length); }
function BX_cursor_moveLeft () { // for some strange reasons, we can't emulate LEFT,RIGHT,UP,DOWN.... /* var ev = document.createEvent("KeyEvents"); ev.initKeyEvent("keypress",true,true,null,false,false,false,false,ev.DOM_VK_LEFT,0); document.dispatchEvent(ev); */ BX_selection = window.getSelection(); var stripWS = BX_selection.anchorNode.data.substring(0,BX_selection.anchorOffset).replace(/^[\t\n\r\s]*$/,"").replace(/[\t\n\r\s]{2,}$/," "); BX_selection.collapse(BX_selection.anchorNode,stripWS.length); // if we are at the beginning of a node, search nextNode.. if (BX_selection.anchorOffset == 0 ) { var walker = document.createTreeWalker(document,NodeFilter.SHOW_TEXT, { acceptNode : function(node) { if ((/^[\t\n\r\s]*$/.test(node.nodeValue))) return NodeFilter.FILTER_REJECT; return NodeFilter.FILTER_ACCEPT; } } ,null); walker.currentNode = BX_selection.anchorNode; var nextNode = walker.previousNode(); if (nextNode) { var stripWS = nextNode.data.replace(/^[\t\n\r\s]*$/,"").replace(/[\t\n\r\s]{2,}$/," "); BX_selection.collapse(nextNode,stripWS.length-1) } } else { BX_selection.collapse(BX_selection.anchorNode, BX_selection.anchorOffset - 1 ); }}
if (BX_selection) { BX_selection.collapseToStart(); }
function BX_cursor_moveLeft (){ BX_selection = window.getSelection(); if (BX_selection) { BX_selection.collapseToStart(); } if (BX_selection.anchorOffset == 0 ) { var nextNode = false; nextNode = BX_cursor_findTextLeft(BX_selection.anchorNode); //no whitespace stuff... if (nextNode != false) { var stripWS = nextNode.data.replace(/[\n ]{2,}$/,""); if (stripWS.length == 0 || BX_cursor_overElement) { BX_selection.collapse(nextNode,stripWS.length) } else { BX_selection.collapse(nextNode,stripWS.length-1); } } } else { BX_selection.collapse(BX_selection.anchorNode, BX_selection.anchorOffset - 1 ); } /* BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange(); BX_range.collapse(true);*/}
if (BX_selection.anchorOffset == 0 ) { var nextNode = false; nextNode = BX_cursor_findTextLeft(BX_selection.anchorNode);
var stripWS = BX_selection.anchorNode.data.substring(0,BX_selection.anchorOffset).replace(/^[\t\n\r\s]*$/,"").replace(/[\t\n\r\s]{2,}$/," "); BX_selection.collapse(BX_selection.anchorNode,stripWS.length); if (BX_selection.anchorOffset == 0 ) { var walker = document.createTreeWalker(document,NodeFilter.SHOW_TEXT, { acceptNode : function(node) { if ((/^[\t\n\r\s]*$/.test(node.nodeValue))) return NodeFilter.FILTER_REJECT; return NodeFilter.FILTER_ACCEPT; } } ,null);
function BX_cursor_moveLeft (){ BX_selection = window.getSelection(); if (BX_selection) { BX_selection.collapseToStart(); } if (BX_selection.anchorOffset == 0 ) { var nextNode = false; nextNode = BX_cursor_findTextLeft(BX_selection.anchorNode); //no whitespace stuff... if (nextNode != false) { var stripWS = nextNode.data.replace(/[\n ]{2,}$/,""); if (stripWS.length == 0 || BX_cursor_overElement) { BX_selection.collapse(nextNode,stripWS.length) } else { BX_selection.collapse(nextNode,stripWS.length-1); } } } else { BX_selection.collapse(BX_selection.anchorNode, BX_selection.anchorOffset - 1 ); } /* BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange(); BX_range.collapse(true);*/}
if (nextNode != false) { var stripWS = nextNode.data.replace(/[\n ]{2,}$/,""); if (stripWS.length == 0 || BX_cursor_overElement) { BX_selection.collapse(nextNode,stripWS.length) } else { BX_selection.collapse(nextNode,stripWS.length-1); }
walker.currentNode = BX_selection.anchorNode; var nextNode = walker.previousNode(); if (nextNode) { var stripWS = nextNode.data.replace(/^[\t\n\r\s]*$/,"").replace(/[\t\n\r\s]{2,}$/," "); BX_selection.collapse(nextNode,stripWS.length-1)
function BX_cursor_moveLeft (){ BX_selection = window.getSelection(); if (BX_selection) { BX_selection.collapseToStart(); } if (BX_selection.anchorOffset == 0 ) { var nextNode = false; nextNode = BX_cursor_findTextLeft(BX_selection.anchorNode); //no whitespace stuff... if (nextNode != false) { var stripWS = nextNode.data.replace(/[\n ]{2,}$/,""); if (stripWS.length == 0 || BX_cursor_overElement) { BX_selection.collapse(nextNode,stripWS.length) } else { BX_selection.collapse(nextNode,stripWS.length-1); } } } else { BX_selection.collapse(BX_selection.anchorNode, BX_selection.anchorOffset - 1 ); } /* BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange(); BX_range.collapse(true);*/}
if ( BX_selection.anchorOffset == node.data.length) {
document.normalize(); if (node.nodeType == 1 || BX_selection.anchorOffset == node.data.length) {
function BX_cursor_moveToStartInNode(node, end) { if (!end) { if ( BX_selection.anchorOffset == 0) { var nodeIt2 = document.createTreeWalker(document, NodeFilter.SHOW_TEXT,{ acceptNode : function(node) { if ((/[^\t\n\r\s]/.test(node.data))) { return NodeFilter.FILTER_ACCEPT; } else { return NodeFilter.FILTER_REJECT; } } }, false); nodeIt2.currentNode = node; node = nodeIt2.previousNode( ); } if (BX_find_bitfluxspanNode(node)) { BX_selection.collapse(node,0); } } else { if ( BX_selection.anchorOffset == node.data.length) { var nodeIt2 = document.createTreeWalker(node, NodeFilter.SHOW_TEXT,{ acceptNode : function(node) { if ((/[^\t\n\r\s]/.test(node.data))) { return NodeFilter.FILTER_ACCEPT; } else { return NodeFilter.FILTER_REJECT; } } }, false); node = nodeIt2.nextNode( ); } if (BX_find_bitfluxspanNode(node)) { BX_selection.collapse(node,node.data.length); } }}
BX_infobar.style.top = window.innerHeight - 30; BX_infobar.style.height = 30;
BX_infobar.style.top = window.innerHeight - 30 +"px"; BX_infobar.style.height = "30px";
function BX_down(){ BX_infotext2.style.visibility = "hidden"; BX_infotext.style.visibility = "visible"; BX_infobar.style.top = window.innerHeight - 30; BX_infobar.style.height = 30; BX_addEvents();}
dump(": " + text + "\n");
dump(": " + text ); dump ("\n");
function BX_dump (text,level) { if (BX_debugging) { // dump (" \n"); dump(new Date()); dump(": " + text + "\n");/* dump(" in: "); for(c = arguments.callee; c; c = c.caller){ dump(c.name + " "); }*/ }}
mes += "bitfluxeditor.js Info: $Revision: 1.5 $ $Name: $ $Date: 2002/11/23 11:47:33 $ \n";
mes += "bitfluxeditor.js Info: $Revision: 1.6 $ $Name: $ $Date: 2003/01/21 17:00:55 $ \n";
function BX_errorMessage(e) { if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_innerHTML(BX_error_window.document,""); BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.5 $ $Name: $ $Date: 2002/11/23 11:47:33 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_innerHTML(BX_infoerror,"ERROR:\n"+e.message +"\n"); if (BX_infoerror_timeout) { try { BX_infoerror_timeout.clearTimeout(); } catch(e) {}; } BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
mes += "bitfluxeditor.js Info: $Revision: 1.3 $ $Name: $ $Date: 2002/10/25 10:12:21 $ \n";
mes += "bitfluxeditor.js Info: $Revision: 1.4 $ $Name: $ $Date: 2002/11/17 16:48:14 $ \n";
function BX_errorMessage(e) { if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_innerHTML(BX_error_window.document,""); BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.3 $ $Name: $ $Date: 2002/10/25 10:12:21 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_innerHTML(BX_infoerror,"ERROR:\n"+e.message +"\n"); if (BX_infoerror_timeout) { try { BX_infoerror_timeout.clearTimeout(); } catch(e) {}; } BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
mes += "bitfluxeditor.js Info: $Revision: 1.2 $ $Name: $ $Date: 2002/10/24 14:41:17 $ \n";
mes += "bitfluxeditor.js Info: $Revision: 1.3 $ $Name: $ $Date: 2002/10/25 10:12:21 $ \n";
function BX_errorMessage(e) { if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_innerHTML(BX_error_window.document,""); BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.2 $ $Name: $ $Date: 2002/10/24 14:41:17 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_innerHTML(BX_infoerror,"ERROR:\n"+e.message +"\n"); if (BX_infoerror_timeout) { BX_infoerror_timeout.clearTimeout(); } BX_dump("window.setTimeout(BX_clearInfoError() in BX_error_message"); BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
BX_infoerror_timeout.clearTimeout();
try { BX_infoerror_timeout.clearTimeout(); } catch(e) {};
function BX_errorMessage(e) { if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_innerHTML(BX_error_window.document,""); BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.2 $ $Name: $ $Date: 2002/10/24 14:41:17 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_innerHTML(BX_infoerror,"ERROR:\n"+e.message +"\n"); if (BX_infoerror_timeout) { BX_infoerror_timeout.clearTimeout(); } BX_dump("window.setTimeout(BX_clearInfoError() in BX_error_message"); BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
BX_dump("window.setTimeout(BX_clearInfoError() in BX_error_message");
function BX_errorMessage(e) { if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_innerHTML(BX_error_window.document,""); BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.2 $ $Name: $ $Date: 2002/10/24 14:41:17 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_innerHTML(BX_infoerror,"ERROR:\n"+e.message +"\n"); if (BX_infoerror_timeout) { BX_infoerror_timeout.clearTimeout(); } BX_dump("window.setTimeout(BX_clearInfoError() in BX_error_message"); BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
mes += "bitfluxeditor.js Info: $Revision: 1.4 $ $Name: $ $Date: 2002/11/17 16:48:14 $ \n";
mes += "bitfluxeditor.js Info: $Revision: 1.5 $ $Name: $ $Date: 2002/11/23 11:47:33 $ \n";
function BX_errorMessage(e) { if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_innerHTML(BX_error_window.document,""); BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.4 $ $Name: $ $Date: 2002/11/17 16:48:14 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_innerHTML(BX_infoerror,"ERROR:\n"+e.message +"\n"); if (BX_infoerror_timeout) { try { BX_infoerror_timeout.clearTimeout(); } catch(e) {}; } BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
BX_error_window.document.innerHTML = "";
BX_innerHTML(BX_error_window.document,"");
function BX_errorMessage(e){ if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_error_window.document.innerHTML = ""; BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.1 $ $Name: $ $Date: 2002/09/13 20:26:49 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_infoerror.innerHTML = "ERROR:\n"+e.message +"\n"; if (BX_infoerror_timeout) { BX_infoerror_timeout.clearTimeout(); } BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
mes += "bitfluxeditor.js Info: $Revision: 1.1 $ $Name: $ $Date: 2002/09/13 20:26:49 $ \n";
mes += "bitfluxeditor.js Info: $Revision: 1.2 $ $Name: $ $Date: 2002/10/24 14:41:17 $ \n";
function BX_errorMessage(e){ if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_error_window.document.innerHTML = ""; BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.1 $ $Name: $ $Date: 2002/09/13 20:26:49 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_infoerror.innerHTML = "ERROR:\n"+e.message +"\n"; if (BX_infoerror_timeout) { BX_infoerror_timeout.clearTimeout(); } BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
}
} else {
function BX_errorMessage(e){ if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_error_window.document.innerHTML = ""; BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.1 $ $Name: $ $Date: 2002/09/13 20:26:49 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_infoerror.innerHTML = "ERROR:\n"+e.message +"\n"; if (BX_infoerror_timeout) { BX_infoerror_timeout.clearTimeout(); } BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
else { BX_infoerror.innerHTML = "ERROR:\n"+e.message +"\n"; if (BX_infoerror_timeout) {
BX_innerHTML(BX_infoerror,"ERROR:\n"+e.message +"\n"); if (BX_infoerror_timeout) {
function BX_errorMessage(e){ if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_error_window.document.innerHTML = ""; BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.1 $ $Name: $ $Date: 2002/09/13 20:26:49 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_infoerror.innerHTML = "ERROR:\n"+e.message +"\n"; if (BX_infoerror_timeout) { BX_infoerror_timeout.clearTimeout(); } BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
BX_dump("window.setTimeout(BX_clearInfoError() in BX_error_message");
function BX_errorMessage(e){ if (BX_debugMessage) { var mes = "ERROR:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + e.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} try { mes += "BX_range.startContainer: " + BX_range.startContainer.nodeName + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; var confirm = "\nDo you want to open it in a window (for copy&paste) ?\n (press Cancel if No)"; if (window.confirm(mes + confirm)) { var BX_error_window = window.open("","_blank",""); BX_error_window.document.innerHTML = ""; BX_error_window.document.writeln("<pre>"); mes += "UserAgent: "+navigator.userAgent +"\n"; mes += "bitfluxeditor.js Info: $Revision: 1.1 $ $Name: $ $Date: 2002/09/13 20:26:49 $ \n"; BX_error_window.document.writeln(mes); mes = "\nError Object:\n\n"; for (var b in e) { mes += b; try { mes += ": "+e.eval(b) ; } catch(e) { bla += ": NOT EVALED"; }; mes += "\n"; } BX_error_window.document.writeln(mes); } } else { BX_infoerror.innerHTML = "ERROR:\n"+e.message +"\n"; if (BX_infoerror_timeout) { BX_infoerror_timeout.clearTimeout(); } BX_infoerror_timeout = window.setTimeout("BX_clearInfoError()",10000); }}
while(node && node.nodeName == "#text" || (node.nodeName != "body" && node.getAttribute("name") != "bitfluxspan")) {
while(node && node.nodeName == "#text" || (node.parentNode.nodeName != "html" && node.getAttribute("name") != "bitfluxspan")) {
function BX_find_bitfluxspanNode(node ) { while(node && node.nodeName == "#text" || (node.nodeName != "body" && node.getAttribute("name") != "bitfluxspan")) { node = node.parentNode; } if (node.getAttribute("name") == "bitfluxspan") { return node; } else { return false; }}
while(node.nodeName == "#text" || (node.nodeName != "body" && node.getAttribute("name") != "bitfluxspan")) {
while(node && node.nodeName == "#text" || (node.nodeName != "body" && node.getAttribute("name") != "bitfluxspan")) {
function BX_find_bitfluxspanNode(node ) { while(node.nodeName == "#text" || (node.nodeName != "body" && node.getAttribute("name") != "bitfluxspan")) { node = node.parentNode; } if (node.getAttribute("name") == "bitfluxspan") { return node; } else { return false; }}
BX_dump("BX_focusSpan(" + w_div.nodeName + ")");
function BX_focusSpan (w_div,isNode) { if (!isNode) { var w_div= BX_find_bitfluxspanNode(w_div.target); } BX_dump("BX_focusSpan(" + w_div.nodeName + ")"); if (!(BX_dotFocus) || BX_dotFocus != w_div) { w_div.setAttribute("bxe_hasfocus","true"); BX_dotFocus.removeAttribute("bxe_hasfocus"); BX_dotFocus=w_div; }}
function BX_focusSpan (w_div ) { if (!(BX_dotFocus) || BX_dotFocus != w_div) { w_div.style.borderColor='#000000';
function BX_focusSpan (w_div,isNode) { if (!isNode) { var w_div= BX_find_bitfluxspanNode(w_div.target); }
function BX_focusSpan (w_div ){ if (!(BX_dotFocus) || BX_dotFocus != w_div) { w_div.style.borderColor='#000000'; BX_dotFocus.style.borderColor='#cccccc'; BX_dotFocus=w_div; }}
BX_dotFocus.style.borderColor='#cccccc';
BX_dump("BX_focusSpan(" + w_div.nodeName + ")"); if (!(BX_dotFocus) || BX_dotFocus != w_div) { w_div.setAttribute("bxe_hasfocus","true"); BX_dotFocus.removeAttribute("bxe_hasfocus");
function BX_focusSpan (w_div ){ if (!(BX_dotFocus) || BX_dotFocus != w_div) { w_div.style.borderColor='#000000'; BX_dotFocus.style.borderColor='#cccccc'; BX_dotFocus=w_div; }}
function BX_get_selection() { BX_selection = window.getSelection(); BX_range = BX_selection.getRangeAt(0);
function BX_get_selection() { try { BX_selection = window.getSelection(); BX_range = BX_selection.getRangeAt(0); } catch(e) { }
function BX_get_selection(){ BX_selection = window.getSelection(); BX_range = BX_selection.getRangeAt(0);}