rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
}
} else { var ahref = document.createElementNS("http:
function BX_registerButton(tag,gif,width,height,title,tagoptions,tagoptions2){ if (!tagoptions) { tagoptions = 0; } if (!tagoptions2) { tagoptions2 = new Array(); } /* if options is inactive, print the inactive button (ending with _p) */ if (tagoptions & optInactive) { if (tagoptions & optCallback) { BX_printButton(gif+"_p",width,height,false, title); } } /* if options is nonclickable, print the inactive button (ending with _p) but add it to the buttons-system as well; */ else if (tagoptions & optNonclickable) { BX_buttonbar.appendChild(BX_printButton(gif+"_p",width,height,gif,title)); BX_buttons[tag] = new Array(); BX_buttons[tag]["gif"] = gif; BX_buttons[tag]["options"] = tagoptions; } else if (tagoptions & optCallback) { var ahref = document.createElement("a"); ahref.setAttribute("href","javascript:"+tagoptions2); ahref.appendChild(BX_printButton(gif+"_n",width,height,gif,title)); if (optElementSensitive & tagoptions) { BX_buttons[tag] = new Array(); BX_buttons[tag]["gif"] = gif; BX_buttons[tag]["options"] = tagoptions; } BX_buttonbar.appendChild(ahref); } /* otherwise it's the default behaviour */ else { /* if we want a normal javascript popup, we use a special function... */ if (tagoptions2["popUp"] == true) { var ahref = document.createElement("a"); ahref.setAttribute("href","javascript:BX_surroundTagWithPopup('"+tagoptions2["popUpBefore"]+"','"+tagoptions2["popUpAfter"]+"')"); } else { var ahref = document.createElement("a"); if (tagoptions & optSplitNode) { ahref.setAttribute("href","javascript:BX_add_tag('"+tag+"',false,true);"); } else { ahref.setAttribute("href","javascript:BX_add_tag('"+tag+"');"); } } ahref.appendChild(BX_printButton(gif+"_n",width,height,gif,title)); BX_buttonbar.appendChild(ahref); //document.write("</a>"); BX_buttons[tag] = new Array(); BX_buttons[tag]["gif"] = gif; BX_buttons[tag]["options"] = tagoptions; }}
else { var ahref = document.createElement("a"); if (tagoptions & optSplitNode) {
if (tagoptions & optSplitNode) {
function BX_registerButton(tag,gif,width,height,title,tagoptions,tagoptions2){ if (!tagoptions) { tagoptions = 0; } if (!tagoptions2) { tagoptions2 = new Array(); } /* if options is inactive, print the inactive button (ending with _p) */ if (tagoptions & optInactive) { if (tagoptions & optCallback) { BX_printButton(gif+"_p",width,height,false, title); } } /* if options is nonclickable, print the inactive button (ending with _p) but add it to the buttons-system as well; */ else if (tagoptions & optNonclickable) { BX_buttonbar.appendChild(BX_printButton(gif+"_p",width,height,gif,title)); BX_buttons[tag] = new Array(); BX_buttons[tag]["gif"] = gif; BX_buttons[tag]["options"] = tagoptions; } else if (tagoptions & optCallback) { var ahref = document.createElement("a"); ahref.setAttribute("href","javascript:"+tagoptions2); ahref.appendChild(BX_printButton(gif+"_n",width,height,gif,title)); if (optElementSensitive & tagoptions) { BX_buttons[tag] = new Array(); BX_buttons[tag]["gif"] = gif; BX_buttons[tag]["options"] = tagoptions; } BX_buttonbar.appendChild(ahref); } /* otherwise it's the default behaviour */ else { /* if we want a normal javascript popup, we use a special function... */ if (tagoptions2["popUp"] == true) { var ahref = document.createElement("a"); ahref.setAttribute("href","javascript:BX_surroundTagWithPopup('"+tagoptions2["popUpBefore"]+"','"+tagoptions2["popUpAfter"]+"')"); } else { var ahref = document.createElement("a"); if (tagoptions & optSplitNode) { ahref.setAttribute("href","javascript:BX_add_tag('"+tag+"',false,true);"); } else { ahref.setAttribute("href","javascript:BX_add_tag('"+tag+"');"); } } ahref.appendChild(BX_printButton(gif+"_n",width,height,gif,title)); BX_buttonbar.appendChild(ahref); //document.write("</a>"); BX_buttons[tag] = new Array(); BX_buttons[tag]["gif"] = gif; BX_buttons[tag]["options"] = tagoptions; }}
BX_no_events = true;
function BX_removeEvents() { document.removeEventListener("keypress",BX_keypress,false); document.addEventListener("keypress",BX_onkeyup,false); // document.removeEventListener("keyup",BX_onkeyup,false); // var allSpans = document.getElementsByName("bitfluxspan"); /* for (i = 0; i < allSpans.length; i ++) { allSpans[i].removeEventListener("mouseup", BX_RangeCaptureOnMouseUp, false ); } */ BX_transformLocation.removeEventListener("mouseup", BX_RangeCaptureOnMouseUp, false);}
document.removeEventListener("keyup",BX_onkeyup,false);
document.addEventListener("keypress",BX_onkeyup,false);
function BX_removeEvents(){ document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); // var allSpans = document.getElementsByName("bitfluxspan"); /* for (i = 0; i < allSpans.length; i ++) { allSpans[i].removeEventListener("mouseup", BX_RangeCaptureOnMouseUp, false ); } */ BX_transformLocation.removeEventListener("mouseup", BX_RangeCaptureOnMouseUp, false);}
window.open("./"+BX_root_dir+"/specialcharacters/sc_generated.html","sc",'toolbar=no,width=380,height=450,scrollbars=no,resizable=yes','articleinfo_keywordset');
window.open(BX_root_dir+"/specialcharacters/sc_generated.html","sc",'toolbar=no,width=380,height=450,scrollbars=no,resizable=yes','articleinfo_keywordset');
function BX_sc_popup (){ window.open("./"+BX_root_dir+"/specialcharacters/sc_generated.html","sc",'toolbar=no,width=380,height=450,scrollbars=no,resizable=yes','articleinfo_keywordset');}
BX_schemafile = BX_config_getContent("/config/files/input/file[@name='BX_schemafile']"); BX_schema = document.implementation.createDocument("","",null); BX_schema.onload = BX_schema_loaded; BX_schema.load(BX_schemafile);
BX_schema = new BXE_XmlDocument("/config/files/input/file[@name='BX_schemafile']"); BX_schema.load(BX_schema_loaded);
function BX_schema_init() { BX_schemafile = BX_config_getContent("/config/files/input/file[@name='BX_schemafile']"); BX_schema = document.implementation.createDocument("","",null); BX_schema.onload = BX_schema_loaded; // set the callback when we are done loading BX_schema.load(BX_schemafile); }
function BX_schema_loaded() {
function BX_schema_loaded(e) { BXE_loader.xmlloaded(e);
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http: { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement);
if (BX_schema.doc.documentElement.localName != "schema" || BX_schema.doc.documentElement.namespaceURI != "http: alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; }
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http: { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break;
var nsResolver = BX_schema.doc.createNSResolver(BX_schema.doc.documentElement);
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } }
var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.doc.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array();
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver);
var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http: switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break;
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { }
case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data;
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
} return;
while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } }
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) {
} return;
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } } return;
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
*/ }
function BX_schema_loaded() { BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement); if (BX_schema.documentElement.localName != "schema" || BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" ) { alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI); return false; } var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement); var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver); while (node = result.iterateNext()) { var name = node.getAttribute("name"); BX_elements[name] = new Array(); // do appinfo stuff var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0") { switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; case "insertafter": insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver); if ( insertafter_node = insertafter_result.iterateNext()) { var inserttext = insertafter_node.firstChild.data; while (insertafter_node = insertafter_result.iterateNext()) { inserttext += " | " + insertafter_node.firstChild.data; } BX_elements[name]["insertAfter"] = inserttext; } } } } var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); while (element = elements_result.iterateNext()) { BX_elements[name]["allowedElements"] += element.getAttribute("ref") + " | "; } BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,""); } else { } } return;/* var name = element_nodes[i].getAttribute("name"); BX_elements[name] = new Array(); } var first_nodes = element_nodes[i].childNodes; for (var j = 0; j < first_nodes.length; j++ ) { switch(first_nodes[j].nodeName) { case "xs:annotation": if(BX_mozilla_version >= 1.1) { var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null); } else { var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null); } node = result.iterateNext(); alert (node.nodeName); break; } }return;}*/}
if (anchorNode.nodeName == "#text") {
if (anchorNode.nodeType == 3) {
function BX_scrollToCursor(node) { BX_get_selection(); if (!node) { var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; if (BX_selection.isCollapsed) { var focusNode = false; } else { var focusNode = BX_selection.focusNode; var focusOffset = BX_selection.focusOffset; } } else { var anchorNode = node; var anchorOffset = 0; var focusNode =false; } // var BX_cursor = document.createElement("span"); // BX_cursor.appendChild(document.createTextNode("|")); /* BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); */ if (anchorNode.nodeName == "#text") { var cursorNode = anchorNode.parentNode; } else { var cursorNode = anchorNode; } try { var cursorPos = cursorNode.offsetTop + cursorNode.offsetHeight; } catch(e) { return; } if (cursorPos == 0) { return ; } if (cursorPos > (window.innerHeight + window.pageYOffset - 230)) { window.scrollTo(0,cursorPos - window.innerHeight + 270); } /* else if (cursorPos < window.pageYOffset - 15) { window.scrollTo(0,cursorPos - 80); }*/ // BX_cursor.parentNode.removeChild(BX_cursor); BX_selection.collapse(anchorNode,anchorOffset); if(focusNode && ( anchorNode != focusNode || focusOffset != anchorOffset)) { BX_selection.extend(focusNode,focusOffset); }}
node.style.background = "#aaaaaa";
node.setAttribute("bxe_mark","true");
function BX_show_node(id){ var node = BX_getElementByIdClean(id,document); node.style.background = "#aaaaaa"; // try{node.style.borderWidth="thin";} // catch(e){};}
BX_dump ("window.setTimeout(BX_source_edit) in BX_source_edit");
function BX_source_edit(id, selectNodeContents) { if (BX_range) { if (!BX_xslViewSource.doc) { if (!BX_xslViewSource.doc) { BX_xslViewSource.load(null); } // BX_xslViewSource.onload = null; // set the callback when we are done loading BX_dump ("window.setTimeout(BX_source_edit) in BX_source_edit"); window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.doc.implementation.createDocument("","",null); edit_element.appendChild(BX_getElementById(id,document).cloneNode(true)); if (edit_element) { var _new = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource.doc, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,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="70" rows="28"></textarea>'; html += '<br/><input class="text" type="button" value="update" onclick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\' />'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.getElementById("bx_form_clipboard" ).text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.getElementById("bx_form_clipboard" ).text.value += calculateMarkup(_new.documentElement,true); } } BX_no_events = 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... }}
if (!BX_xslViewSource || !BX_xslViewSource.documentElement) {
if (!BX_xslViewSource.doc) {
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile);
if (!BX_xslViewSource.doc) { BX_xslViewSource.load(null);
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50);
BX_dump ("window.setTimeout(BX_source_edit) in BX_source_edit"); window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50);
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true));
var edit_element = BX_xml.doc.implementation.createDocument("","",null); edit_element.appendChild(BX_getElementById(id,document).cloneNode(true));
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null);
var _new = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource.doc, _new, null); } else { BX_popup_hide(); return;
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
else { BX_popup_hide(); return; }
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;';
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/>';
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>';
html += '<br/><input class="text" type="button" value="update" onclick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\' />';
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true);
for (var i = 0; i < childLength; i++) { document.getElementById("bx_form_clipboard" ).text.value += calculateMarkup(_new.documentElement.childNodes[i],true);
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
} else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true);
} else { document.getElementById("bx_form_clipboard" ).text.value += calculateMarkup(_new.documentElement,true);
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
document.removeEventListener("keypress",BX_keypress,false);
BX_no_events = true; document.removeEventListener("keypress",BX_keypress,false);
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
document.forms.clipboard.text.focus();
document.getElementById("bx_form_clipboard" ).text.focus();
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
BX_popup.style.top=BX_popup.offsetTop - 1 + "px";
function BX_source_edit(id, selectNodeContents){ if (BX_range) { if (!BX_xslViewSource || !BX_xslViewSource.documentElement) { if (!BX_xslViewSource) { BX_xslViewSource = document.implementation.createDocument("","",null); BX_xslViewSource.load(BX_xslViewSourceFile); } // BX_xslViewSource.onload = null; // set the callback when we are done loading window.setTimeout("BX_source_edit('"+id+"',"+selectNodeContents+")",50); return; } // var edit_element = document.getElementById(id).cloneNode(true); var edit_element = BX_xml.implementation.createDocument("","",null); edit_element.appendChild(document.getElementById(id).cloneNode(true)); if (edit_element) { var _new = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( edit_element, BX_xslViewSource, _new, null); } else { BX_popup_hide(); return; } // BX_clipboard = document.getElementById(id).cloneNode(1); // document.getElementById(id).parentNode.removeChild(document.getElementById(id)); // BX_selection.selectAllChildren(document.getElementById(id)); BX_popup_start("Edit Source ",500,0); var html = ' <center class="text"><form name="clipboard">'; html += '<input class="buttonklein" type="button" value="Append CDATA" onClick=\'BX_clipboard_insertCDATA()\'>&#160;'; html += '<textarea name="text" class="clipboardtext" style="margin: 10px;" wrap="virtual" cols="70" rows="28"></textarea>'; html += '<input class="text" type="button" value="update" onClick=\'BX_source_insert("'+id+'",'+selectNodeContents+')\'>'; html += '</form></center>'; BX_popup_addHtml(html); if(_new.documentElement) { if (selectNodeContents ) { childLength = _new.documentElement.childNodes.length for (var i = 0; i < childLength; i++) { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement.childNodes[i],true); } } else { document.forms.clipboard.text.value += calculateMarkup(_new.documentElement,true); } } document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); document.forms.clipboard.text.focus(); BX_popup_show(); //fix for mozilla on mac and windows... BX_popup.style.top=BX_popup.offsetTop - 1 + "px"; }}
function BX_source_insert(id,selectNodeContents) { var oldnode = document.getElementById(id);
function BX_source_insert(id,selectNodeContents) { var oldnode = BX_getElementById(id,document);
function BX_source_insert(id,selectNodeContents){ var oldnode = document.getElementById(id); BX_clipboard_copyToBX_clipboard(); if (selectNodeContents) { var childLength = oldnode.childNodes.length; for(var i = 0; i < childLength; i++) { window.defaultStatus += " " +i; oldnode.removeChild(oldnode.childNodes[0]); } oldnode.appendChild(BX_clipboard); } else { oldnode.parentNode.replaceChild(BX_clipboard,oldnode); } BX_transform();}
for(var i = 0; i < childLength; i++) { window.defaultStatus += " " +i;
for(var i = 0; i < childLength; i++) {
function BX_source_insert(id,selectNodeContents){ var oldnode = document.getElementById(id); BX_clipboard_copyToBX_clipboard(); if (selectNodeContents) { var childLength = oldnode.childNodes.length; for(var i = 0; i < childLength; i++) { window.defaultStatus += " " +i; oldnode.removeChild(oldnode.childNodes[0]); } oldnode.appendChild(BX_clipboard); } else { oldnode.parentNode.replaceChild(BX_clipboard,oldnode); } BX_transform();}
function BX_submit() { BX_save_document(BX_posturl,BX_posturl_method);
function BX_submit(options) { BXE_loader.save(BX_posturl.filename,BX_posturl.method,options);
function BX_submit(){ BX_save_document(BX_posturl,BX_posturl_method);}
BX_popup_start("Create Table",100,90);
BX_popup_start("Create Table",0,90);
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n";
output = "<form action='javascript:BX_table_newtable();' id='bxe_tabelle' name='tabelle'><table class=\"usual\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\" /></td>\n";
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n";
output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\" /></td>\n";
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>";
output += "<input type='submit' class=\"usual\" value='create' /> </td>";
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>";
output = "<span class='usual'>Nothing selected, please select the point, where you want the table inserted</span>";
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
var newCell = BX_xml.createElementNS("http:
var newCell = BX_xml.doc.createElementNS("http:
function BX_table_insert_col(){ if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } var cell = BX_range.startContainer.parentNode; if (cell.nodeName.toLowerCase() != "entry") { alert("No table-cell selected, please choose one"); return ; } var row = cell.parentNode; var tbody = row.parentNode; var cellPos; // find on which position we are for (var i = 0; i < row.childNodes.length; i++) { if (row.childNodes[i] == cell) { cellPos = i; break; } } //for each row, add a entry for (var i = 0; i < tbody.childNodes.length; i++) { if (tbody.childNodes[i].nodeName.toLowerCase() == "row") { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); var oldCell = tbody.childNodes[i].childNodes[cellPos]; tbody.childNodes[i].replaceChild(newCell,oldCell); bla = tbody.childNodes[i].insertBefore(oldCell,newCell); } } BX_range.setEnd(newCell.childNodes[0],0); BX_range.setStart(newCell.childNodes[0],0);}
var textNode = BX_xml.createTextNode("#");
var textNode = BX_xml.doc.createTextNode("#");
function BX_table_insert_col(){ if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } var cell = BX_range.startContainer.parentNode; if (cell.nodeName.toLowerCase() != "entry") { alert("No table-cell selected, please choose one"); return ; } var row = cell.parentNode; var tbody = row.parentNode; var cellPos; // find on which position we are for (var i = 0; i < row.childNodes.length; i++) { if (row.childNodes[i] == cell) { cellPos = i; break; } } //for each row, add a entry for (var i = 0; i < tbody.childNodes.length; i++) { if (tbody.childNodes[i].nodeName.toLowerCase() == "row") { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); var oldCell = tbody.childNodes[i].childNodes[cellPos]; tbody.childNodes[i].replaceChild(newCell,oldCell); bla = tbody.childNodes[i].insertBefore(oldCell,newCell); } } BX_range.setEnd(newCell.childNodes[0],0); BX_range.setStart(newCell.childNodes[0],0);}
var newRow = BX_xml.createElementNS("http:
var newRow = BX_xml.doc.createElementNS("http:
function BX_table_insert_row(){ var cell = BX_range.startContainer.parentNode; var row = cell.parentNode; var tbody = row.parentNode; var newRow = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(newRow); for (var i = 0; i < row.childNodes.length; i++) { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); newRow.appendChild(newCell); } tbody.replaceChild(newRow,row); bla = tbody.insertBefore(row,newRow); BX_range.setEnd(bla.nextSibling.childNodes[0].childNodes[0],0); BX_range.setStart(bla.nextSibling.childNodes[0].childNodes[0],0);}
var newCell = BX_xml.createElementNS("http:
var newCell = BX_xml.doc.createElementNS("http:
function BX_table_insert_row(){ var cell = BX_range.startContainer.parentNode; var row = cell.parentNode; var tbody = row.parentNode; var newRow = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(newRow); for (var i = 0; i < row.childNodes.length; i++) { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); newRow.appendChild(newCell); } tbody.replaceChild(newRow,row); bla = tbody.insertBefore(row,newRow); BX_range.setEnd(bla.nextSibling.childNodes[0].childNodes[0],0); BX_range.setStart(bla.nextSibling.childNodes[0].childNodes[0],0);}
var textNode = BX_xml.createTextNode("#");
var textNode = BX_xml.doc.createTextNode("#");
function BX_table_insert_row(){ var cell = BX_range.startContainer.parentNode; var row = cell.parentNode; var tbody = row.parentNode; var newRow = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(newRow); for (var i = 0; i < row.childNodes.length; i++) { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); newRow.appendChild(newCell); } tbody.replaceChild(newRow,row); bla = tbody.insertBefore(row,newRow); BX_range.setEnd(bla.nextSibling.childNodes[0].childNodes[0],0); BX_range.setStart(bla.nextSibling.childNodes[0].childNodes[0],0);}
if (document.forms["tabelle"].ch[0].checked)
if (document.getElementById("bxe_tabelle").ch[0].checked)
function BX_table_insert_row_or_col(roworcol){ if(BX_popup.style.visibility== 'visible') { if (document.forms["tabelle"].ch[0].checked) { BX_table_insert_row(); } else { BX_table_insert_col(); } BX_popup.style.visibility= 'hidden'; BX_addEvents(); return; } if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } if (BX_range.startContainer.parentNode.nodeName.toLowerCase() != "entry") { alert("No table-cell (but " + BX_range.startContainer.parentNode.nodeName +") selected, please choose one"); return ; } BX_popup_start("Add Row or Col",110,90); var output = ""; output += "<form action='javascript:BX_table_insert_row_or_col();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col'></td><td >add col</td>\n"; output += "</tr></tr><td colspan='2'><input type='submit' class=\"usualBlackTd\" value='add'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
output += "<form action='javascript:BX_table_insert_row_or_col();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col'></td><td >add col</td>\n";
output += "<form action='javascript:BX_table_insert_row_or_col();' id='bxe_tabelle' name='tabelle'><table class=\"usual\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked='checked' /></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col' /></td><td >add col</td>\n";
function BX_table_insert_row_or_col(roworcol){ if(BX_popup.style.visibility== 'visible') { if (document.forms["tabelle"].ch[0].checked) { BX_table_insert_row(); } else { BX_table_insert_col(); } BX_popup.style.visibility= 'hidden'; BX_addEvents(); return; } if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } if (BX_range.startContainer.parentNode.nodeName.toLowerCase() != "entry") { alert("No table-cell (but " + BX_range.startContainer.parentNode.nodeName +") selected, please choose one"); return ; } BX_popup_start("Add Row or Col",110,90); var output = ""; output += "<form action='javascript:BX_table_insert_row_or_col();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col'></td><td >add col</td>\n"; output += "</tr></tr><td colspan='2'><input type='submit' class=\"usualBlackTd\" value='add'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
output += "</tr></tr><td colspan='2'><input type='submit' class=\"usualBlackTd\" value='add'> </td>";
output += "</tr><tr><td colspan='2'><input type='submit' class=\"usual\" value='add' /> </td>";
function BX_table_insert_row_or_col(roworcol){ if(BX_popup.style.visibility== 'visible') { if (document.forms["tabelle"].ch[0].checked) { BX_table_insert_row(); } else { BX_table_insert_col(); } BX_popup.style.visibility= 'hidden'; BX_addEvents(); return; } if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } if (BX_range.startContainer.parentNode.nodeName.toLowerCase() != "entry") { alert("No table-cell (but " + BX_range.startContainer.parentNode.nodeName +") selected, please choose one"); return ; } BX_popup_start("Add Row or Col",110,90); var output = ""; output += "<form action='javascript:BX_table_insert_row_or_col();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col'></td><td >add col</td>\n"; output += "</tr></tr><td colspan='2'><input type='submit' class=\"usualBlackTd\" value='add'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value;
var TRows = document.getElementById("bxe_tabelle").rows.value; var TCols = document.getElementById("bxe_tabelle").cols.value;
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
var table = BX_xml.createElementNS("http:
var table = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
var tgroup = BX_xml.createElementNS("http:
var tgroup = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
var tbody = BX_xml.createElementNS("http:
var tbody = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
var trElement = BX_xml.createElementNS("http:
var trElement = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
var tdElement = BX_xml.createElementNS("http:
var tdElement = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
var textNode = BX_xml.createTextNode("#");
var textNode = BX_xml.doc.createTextNode("#");
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
BX_node_clean_bg();
function BX_transform(selectNode) { BX_get_selection(); BX_range.collapse(true); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { BX_xml.doc = BX_getResultXML(); var xmltransformedback = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTR.doc, xmltransformedback, null); BX_xml.doc = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try { BX_selection.collapse(BX_cursor,0); } catch(e) { return; } } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(true);}
if (BX_mixedCaseAttributes) {
if (typeof BX_mixedCaseAttributes != "undefined" && BX_mixedCaseAttributes) {
function BX_transform(selectNode) { BX_get_selection(); BX_range.collapse(true); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { BX_xml.doc = BX_getResultXML(); var xmltransformedback = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTR.doc, xmltransformedback, null); BX_xml.doc = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try { BX_selection.collapse(BX_cursor,0); } catch(e) { return; } } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(true);}
BX_range_length = BX_range.toString().length;
function BX_transform(selectNode) { BX_get_selection(); BX_range.collapse(true); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { BX_xml.doc = BX_getResultXML(); var xmltransformedback = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTR.doc, xmltransformedback, null); BX_xml.doc = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try { BX_selection.collapse(BX_cursor,0); } catch(e) { return; } } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(true);}
if (BX_mixedCaseAttributes) { var xmltransformedback = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_getResultXML(), BX_xmlTR, xmltransformedback, null); BX_xml = xmltransformedback; } else {
if (BX_mixedCaseAttributes) { BX_xml.doc = BX_getResultXML(); var xmltransformedback = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTR.doc, xmltransformedback, null); BX_xml.doc = xmltransformedback; } else {
function BX_transform(selectNode){ BX_get_selection(); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { var xmltransformedback = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_getResultXML(), BX_xmlTR, xmltransformedback, null); BX_xml = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try{ BX_selection.collapse(BX_cursor,0);} catch(e) { return;} } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(true);}
document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif";
document.getElementById("but_redo").src=BX_root_dir+"/img/wt_redo_p.gif";
function BX_undo_updateButtons(){ if (BX_undo_counter == BX_undo_max) { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif"; } else { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif"; } if (! BX_undo_buffer[BX_undo_counter - 1]) { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif"; } else { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif"; }}
document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif";
document.getElementById("but_redo").src=BX_root_dir+"/img/wt_redo_n.gif";
function BX_undo_updateButtons(){ if (BX_undo_counter == BX_undo_max) { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif"; } else { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif"; } if (! BX_undo_buffer[BX_undo_counter - 1]) { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif"; } else { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif"; }}
document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif";
document.getElementById("but_undo").src=BX_root_dir+"/img/wt_undo_p.gif";
function BX_undo_updateButtons(){ if (BX_undo_counter == BX_undo_max) { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif"; } else { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif"; } if (! BX_undo_buffer[BX_undo_counter - 1]) { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif"; } else { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif"; }}
document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif";
document.getElementById("but_undo").src=BX_root_dir+"/img/wt_undo_n.gif";
function BX_undo_updateButtons(){ if (BX_undo_counter == BX_undo_max) { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif"; } else { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif"; } if (! BX_undo_buffer[BX_undo_counter - 1]) { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif"; } else { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif"; }}
BX_infobar.style.top = window.innerHeight - 200; BX_infobar.style.height = 200;
BX_infobar.style.top = window.innerHeight - 200 +"px"; BX_infobar.style.height = "200px" ;
function BX_up(){ BX_removeEvents(); BX_infotext.style.visibility = "hidden"; BX_infotext2.style.visibility = "visible"; BX_infobar.style.top = window.innerHeight - 200; BX_infobar.style.height = 200; BX_range= null;}
if (BX_debugging) { BX_dump("BX_updateButtonsDelayed()"); }
function BX_updateButtonsDelayed() { if (BX_debugging) { BX_dump("BX_updateButtonsDelayed()"); } if (BX_update_buttons) { BX_get_selection(); BX_updateButtons(); BX_update_buttons = false; }}
function BX_updateButtonsDelayed() { if (BX_update_buttons) {
function BX_updateButtonsDelayed() { if (BX_debugging) { BX_dump("BX_updateButtonsDelayed()"); } if (BX_update_buttons) {
function BX_updateButtonsDelayed(){ if (BX_update_buttons) { BX_get_selection(); BX_updateButtons(); BX_update_buttons = false; }}
function BX_updateXML() {
function BX_updateXML() { var allDivsXpath = document.evaluate(" var allDivs = new Array(); var node; while (node = allDivsXpath.iterateNext()) { allDivs.push(node);
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange();
} BX_clean_nodelist(BX_xml.doc); BX_clean_nodelist(document); BX_xml.doc.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.doc.createRange();
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id"));
var myNodeAttr = BX_xml.doc.getElementById(allDivs[i].getAttribute("id"));
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) {
BX_tmp_r2.selectNodeContents(BX_getElementById(allDivs[i].getAttribute("id"),document)); if (BX_tmp_r2.toString().length > 0) {
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
BX_dump("BX_walker_findNextEditableNode(" + startnode.nodeName +")");
if (startnode.nodeType == 1 && startnode.getAttribute("name") == "bitfluxspan" && startnode.childNodes.length == 0 ) { var newTextNode = startnode.appendChild(document.createTextNode("")); return newTextNode; }
function BX_walker_findNextEditableNode(startnode) { BX_dump("BX_walker_findNextEditableNode(" + startnode.nodeName +")"); var nodeIt = document.createTreeWalker(document, NodeFilter.SHOW_TEXT,{ acceptNode : function(node) { if (node.parentNode.getAttribute("name") == "bitfluxspan") { return NodeFilter.FILTER_ACCEPT; } else { return NodeFilter.FILTER_REJECT; } } }, false); nodeIt.currentNode = startnode; var node; node = nodeIt.nextNode( ); if (node == null) { node = nodeIt.previousNode(); } if (node != null && !(/[^\t\n\r\s]/.test(node.data))) { var nodeIt2 = document.createTreeWalker(startnode, 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 (node) { return node; } else { return null; }}
BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID);
function BX_wyona_save(){/* document.forms.poster.action = BX_posturl; document.forms.poster.method = "POST"; document.forms.poster.content.value = calculateMarkup(BX_getResultXML(),true); document.forms.poster.submit();*/// wyona way p.onload = BX_responseXML; var WyonaRequest = BX_xml.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); p.open("POST",BX_posturl);// BX_show_xml(WyonaRequest); p.send(calculateMarkup(WyonaRequest,true));}
dataEle.setAttribute("id",BX_DocumentID);
function BX_wyona_save(){/* document.forms.poster.action = BX_posturl; document.forms.poster.method = "POST"; document.forms.poster.content.value = calculateMarkup(BX_getResultXML(),true); document.forms.poster.submit();*/// wyona way p.onload = BX_responseXML; var WyonaRequest = BX_xml.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); p.open("POST",BX_posturl);// BX_show_xml(WyonaRequest); p.send(calculateMarkup(WyonaRequest,true));}
function BX_xml_getChildNodesByTagName(name, node, nsResolver) { if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(name, node, nsResolver, 0, null);
function BX_xml_getChildNodesByTagName(name, node, nsResolver) { if(BXE.browser.mozillaVersion >= 1.1) { var result = node.ownerDocument.evaluate(name, node, nsResolver, 0, null);
function BX_xml_getChildNodesByTagName(name, node, nsResolver){ if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(name, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate("*[name() = '"+name+"']", node, null, 0, null); } return result;}
function BX_xml_getChildNodesByXpath(xpath11, xpath10 ,node, nsResolver) { if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(xpath11, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate(xpath10, node, null, 0, null); }
function BX_xml_getChildNodesByXpath(xpath11, xpath10 ,node, nsResolver) { if(BXE.browser.mozillaVersion >= 1.1) { var result = node.ownerDocument.evaluate(xpath11, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate(xpath10, node, null, 0, null); }
function BX_xml_getChildNodesByXpath(xpath11, xpath10 ,node, nsResolver){ if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(xpath11, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate(xpath10, node, null, 0, null); } return result;}
function BX_xml_removeWhiteSpaceNodes(node) { var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) {
function BX_xml_removeWhiteSpaceNodes(node) {
function BX_xml_removeWhiteSpaceNodes(node){ var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) { switch(node.childNodes[i].nodeType) { case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }}
switch(node.childNodes[i].nodeType) {
if (!node) { return false; } var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) {
function BX_xml_removeWhiteSpaceNodes(node){ var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) { switch(node.childNodes[i].nodeType) { case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }}
case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); }
switch(node.childNodes[i].nodeType) {
function BX_xml_removeWhiteSpaceNodes(node){ var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) { switch(node.childNodes[i].nodeType) { case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }}
break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }
case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }
function BX_xml_removeWhiteSpaceNodes(node){ var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) { switch(node.childNodes[i].nodeType) { case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }}
try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http: return false; }
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } } catch(e) { BXEui.newObject("initAlert",e); } }
this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1];
this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9a-z\.]*)/)[1]; this.mozillaRvVersionInt = parseFloat(this.mozillaRvVersion);
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } } catch(e) { BXEui.newObject("initAlert",e); } }
if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) {
if (navigator.productSub >= 20020910 && this.mozillaRvVersion == "1.2a") {
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } } catch(e) { BXEui.newObject("initAlert",e); } }
if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) {
else if (navigator.productSub >= 20020826 && this.mozillaRvVersionInt >= 1.0) {
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } } catch(e) { BXEui.newObject("initAlert",e); } }
} catch(e) { BXEui.newObject("initAlert",e); }
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } } catch(e) { BXEui.newObject("initAlert",e); } }
BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID);
function BXE_TransportDriver_wyona(parent){ /** * XMLHttpRequest Object * * We use the same XMLHttpRequest in the whole instance * @type Object */ this.p = new XMLHttpRequest(); /** * Parent Object * * This is normally the BXE_loader class * this has to be implemented with xbBrowser some day: * @type Object */ //check doku, if we can access parent otherwise this.parent = parent; /** * Save a file over the wyona protocol. * It wraps the original xml around some additional tags. * @tparam String filename the filename (can be http://... or just a relative path) * @tparam Mixed options * @treturn void Nothing */ function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); } BXE_TransportDriver_wyona.prototype.save = save; /** * Handles the response of the save method. * This method is called, when the POST request from save has finished * It displays a message, if it succeeded or failed * * @tparam Event e the event triggered after save * @treturn void Nothing */ function _responseXML (e) { var alerttext=""; var p = e.target; if (p.responseXML) { if (p.responseXML.firstChild.nodeName == 'parsererror') { alerttext="Something went wrong during parsing of the response:\n\n"; alerttext+=BX_show_xml(p.responseXML); } else if (p.responseXML.documentElement.getAttribute("status") == "ok") { alerttext = "Document successfully saved"; if (p.options == 1) { alert(alerttext); window.location = BX_backurl; return true; } } else { alerttext="Something went wrong during saving:\n\n"; alerttext += (calculateMarkup(p.responseXML.documentElement,true)); } alert(alerttext ); } else { alerttext="Something went wrong during saving:\n\n"; alert(alerttext + p.responseText) ; } } BXE_TransportDriver_wyona.prototype._responseXML = _responseXML;}
dataEle.setAttribute("id",BX_DocumentID);
function BXE_TransportDriver_wyona(parent){ /** * XMLHttpRequest Object * * We use the same XMLHttpRequest in the whole instance * @type Object */ this.p = new XMLHttpRequest(); /** * Parent Object * * This is normally the BXE_loader class * this has to be implemented with xbBrowser some day: * @type Object */ //check doku, if we can access parent otherwise this.parent = parent; /** * Save a file over the wyona protocol. * It wraps the original xml around some additional tags. * @tparam String filename the filename (can be http://... or just a relative path) * @tparam Mixed options * @treturn void Nothing */ function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); } BXE_TransportDriver_wyona.prototype.save = save; /** * Handles the response of the save method. * This method is called, when the POST request from save has finished * It displays a message, if it succeeded or failed * * @tparam Event e the event triggered after save * @treturn void Nothing */ function _responseXML (e) { var alerttext=""; var p = e.target; if (p.responseXML) { if (p.responseXML.firstChild.nodeName == 'parsererror') { alerttext="Something went wrong during parsing of the response:\n\n"; alerttext+=BX_show_xml(p.responseXML); } else if (p.responseXML.documentElement.getAttribute("status") == "ok") { alerttext = "Document successfully saved"; if (p.options == 1) { alert(alerttext); window.location = BX_backurl; return true; } } else { alerttext="Something went wrong during saving:\n\n"; alerttext += (calculateMarkup(p.responseXML.documentElement,true)); } alert(alerttext ); } else { alerttext="Something went wrong during saving:\n\n"; alert(alerttext + p.responseText) ; } } BXE_TransportDriver_wyona.prototype._responseXML = _responseXML;}
function newObject (name,option) { return eval("new BXE_widget_"+name+"(option)"); } BXE_widget.prototype.newObject = newObject;
function BXE_widget() {}
function set(e) { var mes = "ERROR in initialising Bitflux Editor:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + le.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; BXEui.lm.set(mes.replace(/\n/g,"<br /><br />")); alert(mes); } BXE_widget_initAlert.prototype.set = set;
function BXE_widget_initAlert(object) { if (object) { this.set(object); }}
function set(text) { try { BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='"+ BX_root_dir + "img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); } catch (e) { alert(text); } } BXE_widget_loadMessage.prototype.set = set;
function BXE_widget_loadMessage() {}
else { this.method = null; this.filename = null;
function load(callback) { this.doc = BXE_loader.load(this.filename,this.method,callback)
function BXE_XmlDocument(xpath){ if (xpath) { this.filename = BX_config_getContent(xpath) this.method = BX_config_getContent(xpath + "/@method"); } else { this.method = null; this.filename = null; } this.includes = null; this.parameters = null;}
this.includes = null; this.parameters = null;
BXE_XmlDocument.prototype.load = load; function showXml() { BX_xml_source= this.doc; var BX_source_window = window.open(BX_root_dir+"showsource/index.html","_blank",""); } BXE_XmlDocument.prototype.showXml = showXml;
function BXE_XmlDocument(xpath){ if (xpath) { this.filename = BX_config_getContent(xpath) this.method = BX_config_getContent(xpath + "/@method"); } else { this.method = null; this.filename = null; } this.includes = null; this.parameters = null;}
this.firstDayOfWeek = firstDayOfWeek;
this.firstDayOfWeek = typeof firstDayOfWeek == "number" ? firstDayOfWeek : Calendar._FD;
Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = onClose || null; this.dragging = false; this.hidden = false; this.minYear = 1970; this.maxYear = 2050; this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"]; this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"]; this.isPopup = true; this.weekNumbers = true; this.firstDayOfWeek = firstDayOfWeek; // 0 for Sunday, 1 for Monday, etc. this.showsOtherMonths = false; this.dateStr = dateStr; this.ar_days = null; this.showsTime = false; this.time24 = true; this.yearStep = 2; // HTML elements this.table = null; this.element = null; this.tbody = null; this.firstdayname = null; // Combo boxes this.monthsCombo = null; this.yearsCombo = null; this.hilitedMonth = null; this.activeMonth = null; this.hilitedYear = null; this.activeYear = null; // Information this.dateClicked = false; // one-time initializations if (typeof Calendar._SDN == "undefined") { // table of short day names if (typeof Calendar._SDN_len == "undefined") Calendar._SDN_len = 3; var ar = new Array(); for (var i = 8; i > 0;) { ar[--i] = Calendar._DN[i].substr(0, Calendar._SDN_len); } Calendar._SDN = ar; // table of short month names if (typeof Calendar._SMN_len == "undefined") Calendar._SMN_len = 3; ar = new Array(); for (var i = 12; i > 0;) { ar[--i] = Calendar._MN[i].substr(0, Calendar._SMN_len); } Calendar._SMN = ar; }};
this.hiliteToday = true; this.multiple = null;
Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = onClose || null; this.dragging = false; this.hidden = false; this.minYear = 1970; this.maxYear = 2050; this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"]; this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"]; this.isPopup = true; this.weekNumbers = true; this.firstDayOfWeek = firstDayOfWeek; // 0 for Sunday, 1 for Monday, etc. this.showsOtherMonths = false; this.dateStr = dateStr; this.ar_days = null; this.showsTime = false; this.time24 = true; this.yearStep = 2; // HTML elements this.table = null; this.element = null; this.tbody = null; this.firstdayname = null; // Combo boxes this.monthsCombo = null; this.yearsCombo = null; this.hilitedMonth = null; this.activeMonth = null; this.hilitedYear = null; this.activeYear = null; // Information this.dateClicked = false; // one-time initializations if (typeof Calendar._SDN == "undefined") { // table of short day names if (typeof Calendar._SDN_len == "undefined") Calendar._SDN_len = 3; var ar = new Array(); for (var i = 8; i > 0;) { ar[--i] = Calendar._DN[i].substr(0, Calendar._SDN_len); } Calendar._SDN = ar; // table of short month names if (typeof Calendar._SMN_len == "undefined") Calendar._SMN_len = 3; ar = new Array(); for (var i = 12; i > 0;) { ar[--i] = Calendar._MN[i].substr(0, Calendar._SMN_len); } Calendar._SMN = ar; }};
this.drawCurrent = function() { CalendarNamespace.draw(this.currentMonth, this.currentYear, this.div_id, this.callback); } this.drawDate = function(month, year) { this.currentMonth = month; this.currentYear = year; this.drawCurrent(); } this.drawPreviousMonth = function() { if (this.currentMonth == 1) { this.currentMonth = 12; this.currentYear--; } else { this.currentMonth--; } this.drawCurrent(); } this.drawNextMonth = function() { if (this.currentMonth == 12) { this.currentMonth = 1; this.currentYear++; } else { this.currentMonth++; } this.drawCurrent(); } this.drawPreviousYear = function() { this.currentYear--; this.drawCurrent(); } this.drawNextYear = function() { this.currentYear++; this.drawCurrent(); }
function Calendar(div_id, callback) { // div_id (string) is the ID of the element in which the calendar will // be displayed // callback (string) is the name of a JavaScript function that will be // called with the parameters (year, month, day) when a day in the // calendar is clicked this.div_id = div_id; this.callback = callback; this.today = new Date(); this.currentMonth = this.today.getMonth() + 1; this.currentYear = this.today.getFullYear(); this.drawCurrent = function() { CalendarNamespace.draw(this.currentMonth, this.currentYear, this.div_id, this.callback); } this.drawDate = function(month, year) { this.currentMonth = month; this.currentYear = year; this.drawCurrent(); } this.drawPreviousMonth = function() { if (this.currentMonth == 1) { this.currentMonth = 12; this.currentYear--; } else { this.currentMonth--; } this.drawCurrent(); } this.drawNextMonth = function() { if (this.currentMonth == 12) { this.currentMonth = 1; this.currentYear++; } else { this.currentMonth++; } this.drawCurrent(); } this.drawPreviousYear = function() { this.currentYear--; this.drawCurrent(); } this.drawNextYear = function() { this.currentYear++; this.drawCurrent(); }}
if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0)
if (o[n] && (v = tinyMCE.evalFunc(n, 3, a, o)) == s && m > 0)
callFunc : function(ins, p, n, m, a) { var l, i, on, o, s, v; s = m == 2; l = tinyMCE.getParam(p, ''); if (l != '' && (v = tinyMCE.evalFunc(typeof(l) == "function" ? l : eval(l), 3, a)) == s && m > 0) return true; if (ins != null) { for (i=0, l = ins.plugins; i<l.length; i++) { o = tinyMCE.plugins[l[i]]; if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0) return true; } } l = tinyMCE.themes; for (on in l) { o = l[on]; if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0) return true; } return false; },
if(this.timeout) clearTimeout(this.timeout); if(this.interval) clearInterval(this.interval);
if(!this.options.sync) Effect.Queue.remove(this);
cancel: function() { if(this.timeout) clearTimeout(this.timeout); if(this.interval) clearInterval(this.interval); }
if(this.timeout) clearTimeout(this.timeout); }
if(!this.options.sync) Effect.Queue.remove(this); this.state = 'finished'; },
cancel: function() { if(this.timeout) clearTimeout(this.timeout); }
if (e.stripPropagation) e.stopPropagation();
if (e.stopPropagation) e.stopPropagation();
cancelEventPropagation: function(e) { if (!e) var e = window.event; e.cancelBubble = true; if (e.stripPropagation) e.stopPropagation(); }
if (!e) var e = window.event;
if (!e) e = window.event;
cancelEventPropagation: function(e) { if (!e) var e = window.event; e.cancelBubble = true; if (e.stopPropagation) e.stopPropagation(); }
gPanelContainer().removeEventListener("mouseup",onMouseUp,true); gPanelContainer().removeEventListener("mouseout", onMouseOut, true);
gPanelContainer().removeEventListener("mouseup",izOnMouseUp,true); gPanelContainer().removeEventListener("mouseout", izOnMouseOut, true);
function cancelScrollZoom() { if (linuxImage) linuxImage = null; if (currentImage) currentImage = null; gPanelContainer().removeEventListener("DOMMouseScroll",ScrollImage,true); gPanelContainer().removeEventListener("mouseup",onMouseUp,true); gPanelContainer().removeEventListener("mouseout", onMouseOut, true); mousedown = false;}