rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if ( !(BX_xml_nodelist) ) { if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*"); }
if (!xml) { xml = this; } if ( !(xml.BX_xml_nodelist) ) { BX_xml_nodelist = xml.getElementsByTagName("*");
function BX_getElementById(id,xml) { if ( !(BX_xml_nodelist) ) { if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*"); } } for (var i=0; i < BX_xml_nodelist.length; i++) { var idAttr = BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue; if (idAttr == id) { return BX_xml_nodelist[i]; } } return null;}
for (var i=0; i < BX_xml_nodelist.length; i++) { var idAttr = BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue;
for (var i=0; i < xml.BX_xml_nodelist.length; i++) { var idAttr = xml.BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue;
function BX_getElementById(id,xml) { if ( !(BX_xml_nodelist) ) { if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*"); } } for (var i=0; i < BX_xml_nodelist.length; i++) { var idAttr = BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue; if (idAttr == id) { return BX_xml_nodelist[i]; } } return null;}
return BX_xml_nodelist[i];
return xml.BX_xml_nodelist[i];
function BX_getElementById(id,xml) { if ( !(BX_xml_nodelist) ) { if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*"); } } for (var i=0; i < BX_xml_nodelist.length; i++) { var idAttr = BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue; if (idAttr == id) { return BX_xml_nodelist[i]; } } return null;}
if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*");
if (xml) { xml.BX_xml_nodelist = xml.getElementsByTagName("*"); } else { this.BX_xml_nodelist = this.getElementsByTagName("*"); xml = this;
function BX_getElementByIdClean(id,xml) { if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*"); } for (var i=0; i < BX_xml_nodelist.length; i++) { var idAttr = BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue; if (idAttr == id) { return BX_xml_nodelist[i]; } } return null;}
for (var i=0; i < BX_xml_nodelist.length; i++) { var idAttr = BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue;
for (var i=0; i < xml.BX_xml_nodelist.length; i++) { var idAttr = xml.BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue;
function BX_getElementByIdClean(id,xml) { if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*"); } for (var i=0; i < BX_xml_nodelist.length; i++) { var idAttr = BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue; if (idAttr == id) { return BX_xml_nodelist[i]; } } return null;}
return BX_xml_nodelist[i];
return xml.BX_xml_nodelist[i];
function BX_getElementByIdClean(id,xml) { if (xml) { BX_xml_nodelist = xml.getElementsByTagName("*"); } else { BX_xml_nodelist = this.getElementsByTagName("*"); } for (var i=0; i < BX_xml_nodelist.length; i++) { var idAttr = BX_xml_nodelist[i].getAttribute("id"); if (!idAttr) continue; if (idAttr == id) { return BX_xml_nodelist[i]; } } return null;}
while(startNode && startNode.parentNode && startNode.parentNode.nodeName != "body" && startNode.parentNode.getAttribute("name") != "bitfluxspan") {
while(startNode && startNode.parentNode && startNode.parentNode.parentNode.nodeName != "html" && startNode.parentNode.getAttribute("name") != "bitfluxspan") {
function BX_getParentNode(startNode,nodename) { var thisNodeName = ""; while(startNode && startNode.parentNode && startNode.parentNode.nodeName != "body" && startNode.parentNode.getAttribute("name") != "bitfluxspan") { startNode = startNode.parentNode; thisNodeName = startNode.nodeName; var tags = nodename.split(" | "); for (var i = 0; i < tags.length; i++) { if (thisNodeName == tags[i]) { return startNode; } } } return false;}
BX_xsltProcessor.transformDocument( BX_xml, BX_xmlTRBack, xmltransformedback, null);
BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTRBack.doc, xmltransformedback, null);
function BX_getResultXML(){ BX_updateXML(); var xmltransformedback = document.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml, BX_xmlTRBack, xmltransformedback, null); return xmltransformedback;}
node.style.background = "transparent";
node.removeAttribute("bxe_mark");
function BX_hide_node(id){ var node = BX_getElementByIdClean(id,document); node.style.background = "transparent";}
window.open("./"+BX_root_dir+"/insertpicture/index.html","image",'toolbar=no,width=550,height=350,scrollbars=no,resizable=yes','');
window.open(BX_root_dir+"/insertpicture/index.html","image",'toolbar=no,width=550,height=350,scrollbars=no,resizable=yes','');
function BX_image_popup (){ window.open("./"+BX_root_dir+"/insertpicture/index.html","image",'toolbar=no,width=550,height=350,scrollbars=no,resizable=yes','');}
infotext_attr.innerHTML = "";
BX_innerHTML(infotext_attr,"");
function BX_infobar_printAttributes(node){ var infotext_attr = document.getElementById("BX_infotext_attr"); infotext_attr.innerHTML = ""; if (node.getAttribute("name") != "bitfluxspan") { var element_id = node.getAttribute("id"); var infotext2 = "<b>"+BX_elements[node.nodeName]+"</b> <a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\">down</a><br/>"; infotext2 += "<table class=\"usualBlackTd\">\n"; for (var i=0; i < node.attributes.length; i++ ) { if (node.attributes[i].nodeName != "bx_originalname" && node.attributes[i].nodeName != "internalid" && node.attributes[i].nodeName != "id" && node.attributes[i].nodeName != "style" ) { infotext_attr.innerHTML = "<a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+element_id+"',document));BX_up();\">"+ node.attributes[i].nodeName + "=" + node.attributes[i].nodeValue+"</a> "; infotext2 += "<tr ><td>" + node.attributes[i].nodeName + ": </td>\n"; infotext2 += "<td><input onchange=\"BX_getElementByIdClean('"+element_id+"',document).setAttribute('"+node.attributes[i].nodeName+"',this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"40\" value=\""+node.attributes[i].nodeValue+"\"></td></tr>\n"; } } /** * adding of new attributes. not needed in most of the cases infotext2 += "<tr><td ><input id=\"BX_newattr\">: </td>\n"; infotext2 += "<td><input onchange=\"getElementById'"+element_id+"',BX_xml).setAttribute(document.getElementById('BX_newattr').value,this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"20\" ></td></tr>\n"; */ infotext2 += "<tr><td colspan='2'><input type='button' value = ' ok ' onclick=\"BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\"/></td></tr>"; BX_infotext2.innerHTML = infotext2 + "</table>"; }}
var infotext2 = "<b>"+BX_elements[node.nodeName]+"</b> <a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\">down</a><br/>"; infotext2 += "<table class=\"usualBlackTd\">\n";
var infotext2 = ""+BX_elements[node.nodeName]+"<a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\">down</a><br/>"; infotext2 += "<table class=\"usual\">\n";
function BX_infobar_printAttributes(node){ var infotext_attr = document.getElementById("BX_infotext_attr"); infotext_attr.innerHTML = ""; if (node.getAttribute("name") != "bitfluxspan") { var element_id = node.getAttribute("id"); var infotext2 = "<b>"+BX_elements[node.nodeName]+"</b> <a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\">down</a><br/>"; infotext2 += "<table class=\"usualBlackTd\">\n"; for (var i=0; i < node.attributes.length; i++ ) { if (node.attributes[i].nodeName != "bx_originalname" && node.attributes[i].nodeName != "internalid" && node.attributes[i].nodeName != "id" && node.attributes[i].nodeName != "style" ) { infotext_attr.innerHTML = "<a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+element_id+"',document));BX_up();\">"+ node.attributes[i].nodeName + "=" + node.attributes[i].nodeValue+"</a> "; infotext2 += "<tr ><td>" + node.attributes[i].nodeName + ": </td>\n"; infotext2 += "<td><input onchange=\"BX_getElementByIdClean('"+element_id+"',document).setAttribute('"+node.attributes[i].nodeName+"',this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"40\" value=\""+node.attributes[i].nodeValue+"\"></td></tr>\n"; } } /** * adding of new attributes. not needed in most of the cases infotext2 += "<tr><td ><input id=\"BX_newattr\">: </td>\n"; infotext2 += "<td><input onchange=\"getElementById'"+element_id+"',BX_xml).setAttribute(document.getElementById('BX_newattr').value,this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"20\" ></td></tr>\n"; */ infotext2 += "<tr><td colspan='2'><input type='button' value = ' ok ' onclick=\"BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\"/></td></tr>"; BX_infotext2.innerHTML = infotext2 + "</table>"; }}
for (var i=0; i < node.attributes.length; i++ ) { if (node.attributes[i].nodeName != "bx_originalname" && node.attributes[i].nodeName != "internalid" && node.attributes[i].nodeName != "id" && node.attributes[i].nodeName != "style" ) { infotext_attr.innerHTML = "<a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+element_id+"',document));BX_up();\">"+ node.attributes[i].nodeName + "=" + node.attributes[i].nodeValue+"</a> ";
for (var i=0; i < node.attributes.length; i++ ) { if (node.attributes[i].nodeName != "bxe_originalname" && node.attributes[i].nodeName != "bxe_internalid" && node.attributes[i].nodeName != "id" && node.attributes[i].nodeName != "style" ) { BX_innerHTML(infotext_attr,"<a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+element_id+"',document));BX_up();\">"+ node.attributes[i].nodeName + "=" + node.attributes[i].nodeValue+"</a> ");
function BX_infobar_printAttributes(node){ var infotext_attr = document.getElementById("BX_infotext_attr"); infotext_attr.innerHTML = ""; if (node.getAttribute("name") != "bitfluxspan") { var element_id = node.getAttribute("id"); var infotext2 = "<b>"+BX_elements[node.nodeName]+"</b> <a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\">down</a><br/>"; infotext2 += "<table class=\"usualBlackTd\">\n"; for (var i=0; i < node.attributes.length; i++ ) { if (node.attributes[i].nodeName != "bx_originalname" && node.attributes[i].nodeName != "internalid" && node.attributes[i].nodeName != "id" && node.attributes[i].nodeName != "style" ) { infotext_attr.innerHTML = "<a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+element_id+"',document));BX_up();\">"+ node.attributes[i].nodeName + "=" + node.attributes[i].nodeValue+"</a> "; infotext2 += "<tr ><td>" + node.attributes[i].nodeName + ": </td>\n"; infotext2 += "<td><input onchange=\"BX_getElementByIdClean('"+element_id+"',document).setAttribute('"+node.attributes[i].nodeName+"',this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"40\" value=\""+node.attributes[i].nodeValue+"\"></td></tr>\n"; } } /** * adding of new attributes. not needed in most of the cases infotext2 += "<tr><td ><input id=\"BX_newattr\">: </td>\n"; infotext2 += "<td><input onchange=\"getElementById'"+element_id+"',BX_xml).setAttribute(document.getElementById('BX_newattr').value,this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"20\" ></td></tr>\n"; */ infotext2 += "<tr><td colspan='2'><input type='button' value = ' ok ' onclick=\"BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\"/></td></tr>"; BX_infotext2.innerHTML = infotext2 + "</table>"; }}
infotext2 += "<td><input onchange=\"BX_getElementByIdClean('"+element_id+"',document).setAttribute('"+node.attributes[i].nodeName+"',this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"40\" value=\""+node.attributes[i].nodeValue+"\"></td></tr>\n";
infotext2 += "<td><input onchange=\"BX_getElementByIdClean('"+element_id+"',document).setAttribute('"+node.attributes[i].nodeName+"',this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"40\" value=\""+node.attributes[i].nodeValue+"\" /></td></tr>\n";
function BX_infobar_printAttributes(node){ var infotext_attr = document.getElementById("BX_infotext_attr"); infotext_attr.innerHTML = ""; if (node.getAttribute("name") != "bitfluxspan") { var element_id = node.getAttribute("id"); var infotext2 = "<b>"+BX_elements[node.nodeName]+"</b> <a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\">down</a><br/>"; infotext2 += "<table class=\"usualBlackTd\">\n"; for (var i=0; i < node.attributes.length; i++ ) { if (node.attributes[i].nodeName != "bx_originalname" && node.attributes[i].nodeName != "internalid" && node.attributes[i].nodeName != "id" && node.attributes[i].nodeName != "style" ) { infotext_attr.innerHTML = "<a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+element_id+"',document));BX_up();\">"+ node.attributes[i].nodeName + "=" + node.attributes[i].nodeValue+"</a> "; infotext2 += "<tr ><td>" + node.attributes[i].nodeName + ": </td>\n"; infotext2 += "<td><input onchange=\"BX_getElementByIdClean('"+element_id+"',document).setAttribute('"+node.attributes[i].nodeName+"',this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"40\" value=\""+node.attributes[i].nodeValue+"\"></td></tr>\n"; } } /** * adding of new attributes. not needed in most of the cases infotext2 += "<tr><td ><input id=\"BX_newattr\">: </td>\n"; infotext2 += "<td><input onchange=\"getElementById'"+element_id+"',BX_xml).setAttribute(document.getElementById('BX_newattr').value,this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"20\" ></td></tr>\n"; */ infotext2 += "<tr><td colspan='2'><input type='button' value = ' ok ' onclick=\"BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\"/></td></tr>"; BX_infotext2.innerHTML = infotext2 + "</table>"; }}
BX_infotext2.innerHTML = infotext2 + "</table>";
BX_innerHTML(BX_infotext2,infotext2 + "</table>");
function BX_infobar_printAttributes(node){ var infotext_attr = document.getElementById("BX_infotext_attr"); infotext_attr.innerHTML = ""; if (node.getAttribute("name") != "bitfluxspan") { var element_id = node.getAttribute("id"); var infotext2 = "<b>"+BX_elements[node.nodeName]+"</b> <a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\">down</a><br/>"; infotext2 += "<table class=\"usualBlackTd\">\n"; for (var i=0; i < node.attributes.length; i++ ) { if (node.attributes[i].nodeName != "bx_originalname" && node.attributes[i].nodeName != "internalid" && node.attributes[i].nodeName != "id" && node.attributes[i].nodeName != "style" ) { infotext_attr.innerHTML = "<a href=\"javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+element_id+"',document));BX_up();\">"+ node.attributes[i].nodeName + "=" + node.attributes[i].nodeValue+"</a> "; infotext2 += "<tr ><td>" + node.attributes[i].nodeName + ": </td>\n"; infotext2 += "<td><input onchange=\"BX_getElementByIdClean('"+element_id+"',document).setAttribute('"+node.attributes[i].nodeName+"',this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"40\" value=\""+node.attributes[i].nodeValue+"\"></td></tr>\n"; } } /** * adding of new attributes. not needed in most of the cases infotext2 += "<tr><td ><input id=\"BX_newattr\">: </td>\n"; infotext2 += "<td><input onchange=\"getElementById'"+element_id+"',BX_xml).setAttribute(document.getElementById('BX_newattr').value,this.value); \" onfocus=\"javascript: BX_range= null;\" size=\"20\" ></td></tr>\n"; */ infotext2 += "<tr><td colspan='2'><input type='button' value = ' ok ' onclick=\"BX_infobar_printAttributes(BX_getElementByIdClean('"+node.getAttribute("id")+"',document));BX_down()\"/></td></tr>"; BX_infotext2.innerHTML = infotext2 + "</table>"; }}
BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']");
BX_xmlTR = new BXE_XsltDocument("/config/files/transform/file[@name='BX_xmltransformfile']");
function BX_init() { BX_schema_init(); BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']"); BX_xmlTR.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']"); BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName"); BX_xslTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']"); BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']"); BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']"); BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']"); /* not implemented yet */ // var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']"); BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']"); BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName"); BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { var nodeValue = BX_config_translateUrl(node); //replace quotes typed in config.xml. can go away later. nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'"; // the == "'0'" operator should go away later as will, it // should make transitioning easier. if (nodeValue == "'false'" || nodeValue == "'0'") { nodeValue = false; } else if (nodeValue == "'true'") { nodeValue = true; } eval(node.getAttribute("name") + ' = ' + nodeValue ); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_infobar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false); BX_xml.load(); BX_xsl.load(); BX_xmlTR.load(); BX_xslTR.load(); BX_xmlTRBack.load(BX_xmlTRBack_loaded); BX_transformLocation = document.getElementById("transformlocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.doc.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']");
BX_xmlTRBack = new BXE_XsltDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']");
function BX_init() { BX_schema_init(); BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']"); BX_xmlTR.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']"); BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName"); BX_xslTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']"); BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']"); BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']"); BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']"); /* not implemented yet */ // var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']"); BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']"); BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName"); BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { var nodeValue = BX_config_translateUrl(node); //replace quotes typed in config.xml. can go away later. nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'"; // the == "'0'" operator should go away later as will, it // should make transitioning easier. if (nodeValue == "'false'" || nodeValue == "'0'") { nodeValue = false; } else if (nodeValue == "'true'") { nodeValue = true; } eval(node.getAttribute("name") + ' = ' + nodeValue ); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_infobar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false); BX_xml.load(); BX_xsl.load(); BX_xmlTR.load(); BX_xslTR.load(); BX_xmlTRBack.load(BX_xmlTRBack_loaded); BX_transformLocation = document.getElementById("transformlocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.doc.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']");
BX_xslViewSource = new BXE_XsltDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']");
function BX_init() { BX_schema_init(); BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']"); BX_xmlTR.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']"); BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName"); BX_xslTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']"); BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']"); BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']"); BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']"); /* not implemented yet */ // var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']"); BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']"); BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName"); BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { var nodeValue = BX_config_translateUrl(node); //replace quotes typed in config.xml. can go away later. nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'"; // the == "'0'" operator should go away later as will, it // should make transitioning easier. if (nodeValue == "'false'" || nodeValue == "'0'") { nodeValue = false; } else if (nodeValue == "'true'") { nodeValue = true; } eval(node.getAttribute("name") + ' = ' + nodeValue ); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_infobar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false); BX_xml.load(); BX_xsl.load(); BX_xmlTR.load(); BX_xslTR.load(); BX_xmlTRBack.load(BX_xmlTRBack_loaded); BX_transformLocation = document.getElementById("transformlocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.doc.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']");
BX_xsl = new BXE_XsltDocument("/config/files/input/file[@name='BX_xslfile']");
function BX_init() { BX_schema_init(); BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']"); BX_xmlTR.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']"); BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName"); BX_xslTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']"); BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']"); BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']"); BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']"); /* not implemented yet */ // var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']"); BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']"); BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName"); BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { var nodeValue = BX_config_translateUrl(node); //replace quotes typed in config.xml. can go away later. nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'"; // the == "'0'" operator should go away later as will, it // should make transitioning easier. if (nodeValue == "'false'" || nodeValue == "'0'") { nodeValue = false; } else if (nodeValue == "'true'") { nodeValue = true; } eval(node.getAttribute("name") + ' = ' + nodeValue ); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_infobar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false); BX_xml.load(); BX_xsl.load(); BX_xmlTR.load(); BX_xslTR.load(); BX_xmlTRBack.load(BX_xmlTRBack_loaded); BX_transformLocation = document.getElementById("transformlocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.doc.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
}
function BX_init() { BX_schema_init(); BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']"); BX_xmlTR.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']"); BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName"); BX_xslTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']"); BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']"); BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']"); BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']"); /* not implemented yet */ // var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']"); BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']"); BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName"); BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { var nodeValue = BX_config_translateUrl(node); //replace quotes typed in config.xml. can go away later. nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'"; // the == "'0'" operator should go away later as will, it // should make transitioning easier. if (nodeValue == "'false'" || nodeValue == "'0'") { nodeValue = false; } else if (nodeValue == "'true'") { nodeValue = true; } eval(node.getAttribute("name") + ' = ' + nodeValue ); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_infobar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false); BX_xml.load(); BX_xsl.load(); BX_xmlTR.load(); BX_xslTR.load(); BX_xmlTRBack.load(BX_xmlTRBack_loaded); BX_transformLocation = document.getElementById("transformlocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.doc.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method");
BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']"); BX_xmlTR.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']"); BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName");
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method");
BX_xslTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']");
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");
BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']"); BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']");
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method");
BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']");
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method");
BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']");
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method");
BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']"); BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName"); BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']");
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else {
while (node = options.iterateNext()) { if (node.firstChild) { var nodeValue = BX_config_translateUrl(node); nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'"; if (nodeValue == "'false'" || nodeValue == "'0'") { nodeValue = false; } else if (nodeValue == "'true'") { nodeValue = true; } eval(node.getAttribute("name") + ' = ' + nodeValue ); } else {
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method);
BX_xml.load(); BX_xsl.load();
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method);
BX_xmlTR.load();
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method);
BX_xslTR.load();
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method);
BX_xmlTRBack.load(BX_xmlTRBack_loaded);
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_transformLocation = document.getElementById("transformLocation");
BX_transformLocation = document.getElementById("transformlocation");
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_xml.getElementById = BX_getElementById;
BX_xml.doc.getElementById = BX_getElementById;
function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");}
BX_infobar.style.width = window.innerWidth; BX_infobar.style.top = window.innerHeight - 30;
BX_infobar.style.width = window.innerWidth + "px"; BX_infobar.style.top = window.innerHeight - 30 + "px";
function BX_init_adjustButtonbar() { BX_infobar.style.width = window.innerWidth; BX_infobar.style.top = window.innerHeight - 30;}
BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons
BX_buttonbar.style.width = window.innerWidth + "px"; var result = BX_config.doc.evaluate("/config/buttons
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table"));
BX_buttonbar = BX_buttonbar.appendChild(document.createElementNS("http:
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
var ahref = document.createElement("a");
var ahref = document.createElementNS("http:
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
} else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table")
} else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElementNS("http: } else
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr"));
BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElementNS("http:
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
}
} else if (node.nodeName == "cell") {
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
else if (node.nodeName == "cell") {
if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElementNS("http: } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElementNS("http: }
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) {
if (node.getAttribute("align")) {
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
BX_buttonbar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false);
function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }}
var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">';
var html = ''; html += '<div id="BX_buttonbar" ></div>'; html += '<div id="transformlocation" ></div>' html += '<div id="BX_infobar" >';
function BX_init_page(){ var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">'; html += '<div id="BX_infotext" style="width: 95%; position: absolute; top: 0px; margin-left: 5px; ">'; html += '<span id="BX_infoerror" style="float: right; z-index: 400; color: red; text-align: right; "></span>'; html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">'; html += '</form>'; document.getElementsByTagName("body")[0].innerHTML = html;}
html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">';
html += '<div id="BX_infotext_tags"> </div>\n'; html += '<div id="BX_infotext_attr"> </div>\n'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>\n'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div></div></div>\n'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">\n'; html += '<input name="content" type="hidden" />\n';
function BX_init_page(){ var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">'; html += '<div id="BX_infotext" style="width: 95%; position: absolute; top: 0px; margin-left: 5px; ">'; html += '<span id="BX_infoerror" style="float: right; z-index: 400; color: red; text-align: right; "></span>'; html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">'; html += '</form>'; document.getElementsByTagName("body")[0].innerHTML = html;}
document.getElementsByTagName("body")[0].innerHTML = html;
var bxe_area = document.getElementById("bxe_area"); BX_innerHTML(bxe_area,html)
function BX_init_page(){ var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">'; html += '<div id="BX_infotext" style="width: 95%; position: absolute; top: 0px; margin-left: 5px; ">'; html += '<span id="BX_infoerror" style="float: right; z-index: 400; color: red; text-align: right; "></span>'; html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">'; html += '</form>'; document.getElementsByTagName("body")[0].innerHTML = html;}
} catch (e) { return false; }
function BX_innerHTML (element,html,append){ if (html) { html = '<root xmlns="http://www.w3.org/1999/xhtml">'+html+"</root>"; docfrag = BX_parser.parseFromString(html,"text/xml"); } if (!append) { var len = element.childNodes.length; for (var i = 0; i < len ; i++) { element.removeChild(element.firstChild); } } if (html) { var len = docfrag.documentElement.childNodes.length; for (var i = 0; i < len; i++) { element.appendChild(docfrag.documentElement.firstChild); } }}
BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1);
try { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1);} catch(e) {};
function BX_insertContent(content, doNoCollapse) { var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { try { bla = BX_range.deleteContents(); } catch(e) {} if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } else { // we have to remove all Ranges before going further // otherwise we have strange selection stuff on the screen // it is only needed, when we insert nodes, so it's only here // (and BX_range.deleteContents is doubled..) // hope this resolves bug #6 BX_selection.removeAllRanges(); try { BX_range.deleteContents(); } catch(e) {} } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue ); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else { // if (StartContainer.nodeType == StartContainer.TEXT_NODE) var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; content.normalize(); try { BX_range.insertNodeBX(content); } catch(e) {} ; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); // BX_range.setEnd(EndContainer ,EndPosition +1); } if (!doNoCollapse) { BX_range.collapse(false); } } BX_selection.addRange(BX_range); return content;}
try { BX_range.deleteContents(); } catch(e) {} ;
function BX_insertContent(content, doNoCollapse) { /* BX_selection.removeAllRanges();*/ try { BX_range.deleteContents(); } catch(e) {} ; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; content.normalize(); try { BX_range.insertNodeBX(content); } catch(e) {} ; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); // BX_range.setEnd(EndContainer ,EndPosition +1); } if (!doNoCollapse) { BX_range.collapse(false); } } BX_selection.addRange(BX_range); return content;}
}
} else { BX_selection.removeAllRanges(); try { BX_range.deleteContents(); } catch(e) {}
function BX_insertContent(content, doNoCollapse) { /* BX_selection.removeAllRanges();*/ try { BX_range.deleteContents(); } catch(e) {} ; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; content.normalize(); try { BX_range.insertNodeBX(content); } catch(e) {} ; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); // BX_range.setEnd(EndContainer ,EndPosition +1); } if (!doNoCollapse) { BX_range.collapse(false); } } BX_selection.addRange(BX_range); return content;}
function BX_insertContent(content, do_undo_save) {
function BX_insertContent(content, doNoCollapse) {
function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;}
else { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range);
function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;}
if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]);
if (BX_range.toString().length == 0 && typeof (BX_range.endContainer.data) != "undefined") { var rightOfSelection = BX_range.endContainer.data.substring(BX_range.endOffset,BX_range.endContainer.data.length); var leftOfSelection = BX_range.endContainer.data.substring(0,BX_range.endOffset); if (/[^\t\n\r\s]/.test(leftOfSelection)) { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+/," "); } else { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+$/,""); } if (stripWS.length == 0 ) { var walker = document.createTreeWalker(document,NodeFilter.SHOW_TEXT, { acceptNode : function(node) { if (!(/[^\t\n\r ]/.test(node.nodeValue))) return NodeFilter.FILTER_REJECT; return NodeFilter.FILTER_ACCEPT; } } ,null); walker.currentNode = BX_range.endContainer; var nextNode = walker.nextNode(); if (nextNode) { BX_range.selectNodeContents(nextNode); var rightOfSelection = nextNode.data; var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+$/,"").replace(/^[\t\n\r\s]{2,}/," ");
function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();}
else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1);
function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();}
BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1);
BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+( rightOfSelection.length - stripWS.length) + 1);
function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();}
BX_range.collapse(1);
function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();}
function BX_load(config_file) { try { if (navigator.appName != "Netscape" ) { BX_config_setLoadMessage("You need Mozilla or Netscape 7 for this Editor. Get it from <a href='http: return false; } if (navigator.productSub >= 20020826) { BX_mozilla_version = 1.1; } else if (navigator.productSub >= 20020523) { BX_mozilla_version = 1.0; } else { BX_config_setLoadMessage("You're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http: return false; }
function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0];
function BX_load(config_file){ try { if (navigator.appName != "Netscape" ) { BX_config_setLoadMessage("You need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } if (navigator.productSub >= 20020826) { BX_mozilla_version = 1.1; } else if (navigator.productSub >= 20020523) { BX_mozilla_version = 1.0; } else { BX_config_setLoadMessage("You'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; } BX_config = document.implementation.createDocument("","",null); BX_config_setLoadMessage("Loading Bitflux Editor files...."); BX_config.onload = BX_config_loaded; // set the callback when we are done loading BX_config.load(config_file); } catch(e) { BX_init_alert(e); }}
BX_config = document.implementation.createDocument("","",null); BX_config_setLoadMessage("Loading Bitflux Editor files....");
for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http:
function BX_load(config_file){ try { if (navigator.appName != "Netscape" ) { BX_config_setLoadMessage("You need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } if (navigator.productSub >= 20020826) { BX_mozilla_version = 1.1; } else if (navigator.productSub >= 20020523) { BX_mozilla_version = 1.0; } else { BX_config_setLoadMessage("You'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; } BX_config = document.implementation.createDocument("","",null); BX_config_setLoadMessage("Loading Bitflux Editor files...."); BX_config.onload = BX_config_loaded; // set the callback when we are done loading BX_config.load(config_file); } catch(e) { BX_init_alert(e); }}
BX_config.onload = BX_config_loaded; BX_config.load(config_file); } catch(e) { BX_init_alert(e); }
scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }
function BX_load(config_file){ try { if (navigator.appName != "Netscape" ) { BX_config_setLoadMessage("You need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } if (navigator.productSub >= 20020826) { BX_mozilla_version = 1.1; } else if (navigator.productSub >= 20020523) { BX_mozilla_version = 1.0; } else { BX_config_setLoadMessage("You'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; } BX_config = document.implementation.createDocument("","",null); BX_config_setLoadMessage("Loading Bitflux Editor files...."); BX_config.onload = BX_config_loaded; // set the callback when we are done loading BX_config.load(config_file); } catch(e) { BX_init_alert(e); }}
function BX_load(config_file,fromUrl) {
function BX_load(config_file,fromUrl,path) {
function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http://www.w3.org/1999/xhtml","script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }}
BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>");
if (! (BX_checkUnsupportedBrowsers())) { return false; } BX_parser = new DOMParser(); BX_ser = new XMLSerializer(); if (!path) { BX_root_dir = "./bxe/"; } else { BX_root_dir = path; } 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>");
function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http://www.w3.org/1999/xhtml","script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }}
scr.setAttribute("src",BX_js_files[i]);
scr.setAttribute("src",BX_root_dir + BX_js_files[i]);
function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http://www.w3.org/1999/xhtml","script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }}
var newNode = BX_xml.createElementNS("http: for (i = 0; i < nodeChildren.length; i++) {
var newNode = BX_xml.doc.createElement(newNodeName); for (i = 0; i < nodeChildren.length; i++) {
function BX_node_change(node,newNodeName){ var nodeChildren = node.childNodes; var newNode = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",newNodeName); for (i = 0; i < nodeChildren.length; i++) { newNode.appendChild(nodeChildren[i].cloneNode(1)); } newNode.setAttribute("id","BX_id_"+BX_id_counter); BX_id_counter++; newNode.setAttribute("internalid",'yes'); node.parentNode.replaceChild(newNode,node); // BX_range_updateToCursor(); BX_undo_save(); if (BX_elements[newNodeName]["doTransform"]) { BX_transform(); } BX_selection.collapse(newNode,0); BX_updateButtons(); BX_scrollToCursor();}
newNode.setAttribute("internalid",'yes');
newNode.setAttribute("bxe_internalid",'yes');
function BX_node_change(node,newNodeName){ var nodeChildren = node.childNodes; var newNode = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",newNodeName); for (i = 0; i < nodeChildren.length; i++) { newNode.appendChild(nodeChildren[i].cloneNode(1)); } newNode.setAttribute("id","BX_id_"+BX_id_counter); BX_id_counter++; newNode.setAttribute("internalid",'yes'); node.parentNode.replaceChild(newNode,node); // BX_range_updateToCursor(); BX_undo_save(); if (BX_elements[newNodeName]["doTransform"]) { BX_transform(); } BX_selection.collapse(newNode,0); BX_updateButtons(); BX_scrollToCursor();}
} catch(e) {};
function BX_node_clean_bg() { if (BX_opa_node != null) { var Opa_node = BX_getElementByIdClean(BX_opa_node,document); Opa_node.removeAttribute("bxe_mark"); BX_opa_node = null; }}
Opa_node.style.background = "transparent"; Opa_node.style.removeProperty("background",false);
Opa_node.removeAttribute("bxe_mark");
function BX_node_clean_bg(){ if (BX_opa_node != null) { var Opa_node = BX_getElementByIdClean(BX_opa_node,document); Opa_node.style.background = "transparent"; Opa_node.style.removeProperty("background",false); BX_opa_node = null; }}
function BX_node_insertID(node)
function BX_node_insertID(node) {
function BX_node_insertID(node){ if (node == "[object NodeList]") { node=node.item(0); } node.setAttribute("id",'BX_id_'+BX_id_counter); node.setAttribute("internalid",'yes'); BX_id_counter++; if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); }}
{ if (node == "[object NodeList]") {
if (node == "[object NodeList]") {
function BX_node_insertID(node){ if (node == "[object NodeList]") { node=node.item(0); } node.setAttribute("id",'BX_id_'+BX_id_counter); node.setAttribute("internalid",'yes'); BX_id_counter++; if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); }}
node.setAttribute("internalid",'yes');
node.setAttribute("bxe_internalid",'yes');
function BX_node_insertID(node){ if (node == "[object NodeList]") { node=node.item(0); } node.setAttribute("id",'BX_id_'+BX_id_counter); node.setAttribute("internalid",'yes'); BX_id_counter++; if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); }}
if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]);
if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]) { node.setAttribute("bxe_originalname",BX_elements[node.nodeName]["originalName"]);
function BX_node_insertID(node){ if (node == "[object NodeList]") { node=node.item(0); } node.setAttribute("id",'BX_id_'+BX_id_counter); node.setAttribute("internalid",'yes'); BX_id_counter++; if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); }}
BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); }
function BX_node_move_down (id) { // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); } // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
catch(e) {}
function BX_node_move_down (id) { // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); } // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
BX_range = BX_selection.getRangeAt(0); document.addEventListener("keypress",BX_keypress,false);
function BX_node_move_down (id) { // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); } // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";}
BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); }
function BX_node_move_down (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
try { node.setAttribute("bxe_mark","true") } catch(e) {}
function BX_node_move_up (id) { // var node = BX_getElementByIdClean(id,document); var node = BX_getElementById(id,document); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true") } catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
BX_range = BX_selection.getRangeAt(0); document.addEventListener("keypress",BX_keypress,false);
function BX_node_move_up (id) { // var node = BX_getElementByIdClean(id,document); var node = BX_getElementById(id,document); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true") } catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
var node = document.getElementById(id);
var node = BX_getElementById(id,document);
function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
BX_opa_node=node.getAttribute("ID");
BX_opa_node=node.getAttribute("id");
function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
try{node.style.background="#dddddd";} catch(e) {}
try { node.setAttribute("bxe_mark","true") } catch(e) {}
function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;}
function BX_onContextMenuImg(e){
function BX_onContextMenuImg(e,event){
function BX_onContextMenuImg(e){ var xref = e; BX_popup_start("Image",0,0); BX_popup_addLine("Copy Image","javascript:BX_copy_copyID('"+xref.id+"');BX_popup_hide()"); BX_popup_addLine("Cut Image","javascript:BX_copy_extractID('"+xref.id+"');BX_popup_hide()");// BX_popup_addLine("Edit Image","javascript:BX_open_ImageEdit(BX_getElementByIdClean('"+xref.id+"',document).getAttribute('linkend').replace(/Mediaobject/,''))"); if (BX_clipboard && BX_clipboard.nodeName == "xref") { BX_popup_addLine("Paste Clipboard Image After","javascript:BX_copy_pasteID('"+xref.id+"');BX_popup_hide()"); BX_popup_addLine("Paste Clipboard Image Before","javascript:BX_copy_pasteID('"+xref.id+"',1);BX_popup_hide()"); } if (xref.parentNode.nodeName == "mediagroup") { BX_popup_addLine("Copy Mediagroup","javascript:BX_copy_copyID('"+xref.parentNode.id+"');BX_popup_hide()"); BX_popup_addLine("Cut Mediagroup","javascript:BX_copy_extractID('"+xref.parentNode.id+"');BX_popup_hide()"); } BX_popup_show(); BX_range.selectNodeContents(xref); BX_updateButtons();}
BX_dump("window.setTimeout(BX_updateButtonsDelayed()) in BX_onkeyup");
function BX_onkeyup(e) { switch (e.keyCode) { case e.DOM_VK_UP: case e.DOM_VK_DOWN: case e.DOM_VK_LEFT: case e.DOM_VK_RIGHT: case e.DOM_VK_DELETE: case e.DOM_VK_BACK_SPACE: if (!BX_no_events) { BX_update_buttons = true; window.setTimeout("BX_updateButtonsDelayed()",10); var _node = window.getSelection().anchorNode; _node.target = _node; BX_focusSpan(_node); BX_dump("window.setTimeout(BX_updateButtonsDelayed()) in BX_onkeyup"); } e.preventDefault(); e.stopPropagation(); }}
BX_update_buttons = true; window.setTimeout("BX_updateButtonsDelayed()",10);
if (!BX_no_events) { BX_update_buttons = true; window.setTimeout("BX_updateButtonsDelayed()",10); var _node = window.getSelection().anchorNode; _node.target = _node; BX_focusSpan(_node); BX_dump("window.setTimeout(BX_updateButtonsDelayed()) in BX_onkeyup"); } e.preventDefault(); e.stopPropagation();
function BX_onkeyup(e){ switch (e.keyCode) { case e.DOM_VK_UP: case e.DOM_VK_DOWN: case e.DOM_VK_LEFT: case e.DOM_VK_RIGHT: case e.DOM_VK_DELETE: case e.DOM_VK_BACK_SPACE: BX_update_buttons = true; window.setTimeout("BX_updateButtonsDelayed()",10); }}
var content = BX_range.toString(); BX_range.extractContents(); var element = BX_xml.createElementNS("http: var frag = BX_range.extractContents(); element.appendChild(frag); var new_node = BX_insertContent(element); BX_range.selectNode(new_node);
var tags = new Array("bold","emphasis","emphasize","subscript","superscript","ulink"); var docFrag = BX_deleteTagsWithName(tags);
function BX_plain(){ BX_get_selection(); BX_undo_save(); var content = BX_range.toString(); BX_range.extractContents(); //create a temporary elemen var element = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","span"); var frag = BX_range.extractContents(); element.appendChild(frag); var new_node = BX_insertContent(element); BX_range.selectNode(new_node); while (BX_range.startContainer.nodeName=="bold" || BX_range.startContainer.nodeName=="emphasis" || BX_range.startContainer.nodeName=="emphasize" || BX_range.startContainer.nodeName=="ulink" || BX_range.startContainer.nodeName=="subscript" || BX_range.startContainer.nodeName=="superscript" ) { //split the stuff BX_splitNode(); } var bla = BX_range.createContextualFragment(content); BX_insertContent(bla); BX_selection.collapse(BX_selection.focusNode, BX_selection.focusOffset ); BX_transform();}
while (BX_range.startContainer.nodeName=="bold" || BX_range.startContainer.nodeName=="emphasis" || BX_range.startContainer.nodeName=="emphasize" || BX_range.startContainer.nodeName=="ulink" || BX_range.startContainer.nodeName=="subscript" || BX_range.startContainer.nodeName=="superscript" ) { BX_splitNode(); } var bla = BX_range.createContextualFragment(content); BX_insertContent(bla); BX_selection.collapse(BX_selection.focusNode, BX_selection.focusOffset ); BX_transform();
return;
function BX_plain(){ BX_get_selection(); BX_undo_save(); var content = BX_range.toString(); BX_range.extractContents(); //create a temporary elemen var element = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","span"); var frag = BX_range.extractContents(); element.appendChild(frag); var new_node = BX_insertContent(element); BX_range.selectNode(new_node); while (BX_range.startContainer.nodeName=="bold" || BX_range.startContainer.nodeName=="emphasis" || BX_range.startContainer.nodeName=="emphasize" || BX_range.startContainer.nodeName=="ulink" || BX_range.startContainer.nodeName=="subscript" || BX_range.startContainer.nodeName=="superscript" ) { //split the stuff BX_splitNode(); } var bla = BX_range.createContextualFragment(content); BX_insertContent(bla); BX_selection.collapse(BX_selection.focusNode, BX_selection.focusOffset ); BX_transform();}
BX_no_events = true;
function BX_popup_addTagWithAttributes(tag,attributes,defaults) { BX_popup_hide(); BX_popup_start( tag,0,0); attributes = attributes.replace(/\s+/g,"").split("|"); defaults = defaults.replace(/\s+\|/g,"|").replace(/\|\s+/g,"|").split("|"); var html = "<form name='addtag'>"; html += "<table class=\"usual\">\n"; html += "<tr ><td>Content: </td>\n"; if (BX_range.toString().length > 0) { html += "<td><input type='text' name='content' value='"+BX_range.toString()+"' /></td></tr>"; } else { html += "<td><input type='text' name='content' value='#"+tag+"#' /></td></tr>"; } for (var i = 0; i < attributes.length; i++) { html += "<tr ><td>" + attributes[i] + ": </td>\n"; html += "<td><input type='text' name='"+attributes[i]+"' value='"+defaults[i]+"' /></td></tr>"; } html += "<tr><td></td><td><input onclick='BX_popup_insertTagWithAttributes(\""+tag+"\");' type='button' value='insert' /></td></tr>"; html += "</table>"; html +="</form>"; BX_popup_addHtml(html); document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
html += "<table class=\"usualBlackTd\">\n";
html += "<table class=\"usual\">\n";
function BX_popup_addTagWithAttributes(tag,attributes,defaults){ BX_popup_hide(); BX_popup_start( tag,0,0); attributes = attributes.replace(/\s+/g,"").split("|"); defaults = defaults.replace(/\s+\|/g,"|").replace(/\|\s+/g,"|").split("|"); var html = "<form name='addtag'>"; html += "<table class=\"usualBlackTd\">\n"; html += "<tr ><td>Content: </td>\n"; if (BX_range.toString().length > 0) { html += "<td><input type='text' name='content' value='"+BX_range.toString()+"'></td>"; } else { html += "<td><input type='text' name='content' value='#"+tag+"#'></td>"; } for (var i = 0; i < attributes.length; i++) { html += "<tr ><td>" + attributes[i] + ": </td>\n"; html += "<td><input type='text' name='"+attributes[i]+"' value='"+defaults[i]+"'></td>"; } html += "<tr><td></td><td><input onclick='BX_popup_insertTagWithAttributes(\""+tag+"\");' type='button' value='insert'/></td></tr>"; html += "</table>"; html +="</form>"; BX_popup_addHtml(html); document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
if (BX_range.toString().length > 0) { html += "<td><input type='text' name='content' value='"+BX_range.toString()+"'></td>";
if (BX_range.toString().length > 0) { html += "<td><input type='text' name='content' value='"+BX_range.toString()+"' /></td></tr>"; } else { html += "<td><input type='text' name='content' value='#"+tag+"#' /></td></tr>";
function BX_popup_addTagWithAttributes(tag,attributes,defaults){ BX_popup_hide(); BX_popup_start( tag,0,0); attributes = attributes.replace(/\s+/g,"").split("|"); defaults = defaults.replace(/\s+\|/g,"|").replace(/\|\s+/g,"|").split("|"); var html = "<form name='addtag'>"; html += "<table class=\"usualBlackTd\">\n"; html += "<tr ><td>Content: </td>\n"; if (BX_range.toString().length > 0) { html += "<td><input type='text' name='content' value='"+BX_range.toString()+"'></td>"; } else { html += "<td><input type='text' name='content' value='#"+tag+"#'></td>"; } for (var i = 0; i < attributes.length; i++) { html += "<tr ><td>" + attributes[i] + ": </td>\n"; html += "<td><input type='text' name='"+attributes[i]+"' value='"+defaults[i]+"'></td>"; } html += "<tr><td></td><td><input onclick='BX_popup_insertTagWithAttributes(\""+tag+"\");' type='button' value='insert'/></td></tr>"; html += "</table>"; html +="</form>"; BX_popup_addHtml(html); document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
else { html += "<td><input type='text' name='content' value='#"+tag+"#'></td>"; } for (var i = 0; i < attributes.length; i++) {
for (var i = 0; i < attributes.length; i++) {
function BX_popup_addTagWithAttributes(tag,attributes,defaults){ BX_popup_hide(); BX_popup_start( tag,0,0); attributes = attributes.replace(/\s+/g,"").split("|"); defaults = defaults.replace(/\s+\|/g,"|").replace(/\|\s+/g,"|").split("|"); var html = "<form name='addtag'>"; html += "<table class=\"usualBlackTd\">\n"; html += "<tr ><td>Content: </td>\n"; if (BX_range.toString().length > 0) { html += "<td><input type='text' name='content' value='"+BX_range.toString()+"'></td>"; } else { html += "<td><input type='text' name='content' value='#"+tag+"#'></td>"; } for (var i = 0; i < attributes.length; i++) { html += "<tr ><td>" + attributes[i] + ": </td>\n"; html += "<td><input type='text' name='"+attributes[i]+"' value='"+defaults[i]+"'></td>"; } html += "<tr><td></td><td><input onclick='BX_popup_insertTagWithAttributes(\""+tag+"\");' type='button' value='insert'/></td></tr>"; html += "</table>"; html +="</form>"; BX_popup_addHtml(html); document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
html += "<td><input type='text' name='"+attributes[i]+"' value='"+defaults[i]+"'></td>";
html += "<td><input type='text' name='"+attributes[i]+"' value='"+defaults[i]+"' /></td></tr>";
function BX_popup_addTagWithAttributes(tag,attributes,defaults){ BX_popup_hide(); BX_popup_start( tag,0,0); attributes = attributes.replace(/\s+/g,"").split("|"); defaults = defaults.replace(/\s+\|/g,"|").replace(/\|\s+/g,"|").split("|"); var html = "<form name='addtag'>"; html += "<table class=\"usualBlackTd\">\n"; html += "<tr ><td>Content: </td>\n"; if (BX_range.toString().length > 0) { html += "<td><input type='text' name='content' value='"+BX_range.toString()+"'></td>"; } else { html += "<td><input type='text' name='content' value='#"+tag+"#'></td>"; } for (var i = 0; i < attributes.length; i++) { html += "<tr ><td>" + attributes[i] + ": </td>\n"; html += "<td><input type='text' name='"+attributes[i]+"' value='"+defaults[i]+"'></td>"; } html += "<tr><td></td><td><input onclick='BX_popup_insertTagWithAttributes(\""+tag+"\");' type='button' value='insert'/></td></tr>"; html += "</table>"; html +="</form>"; BX_popup_addHtml(html); document.removeEventListener("keypress",BX_keypress,false); document.removeEventListener("keyup",BX_onkeyup,false); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
if (node.previousSibling) {
var prevnode = node; while (prevnode = prevnode.previousSibling) { if (prevnode.nodeType == 1 || (prevnode.nodeType == 3 && /[^\t\n\r\s]/.test(prevnode.data))) { break;} } if (prevnode && ("nodeType" in prevnode) ) {
function BX_popup_node(id){ var node = BX_getElementByIdClean(id,document); if (BX_elements[node.nodeName]) { BX_popup_start("Element " +BX_elements[node.nodeName]["name"],0,0); } else { BX_popup_start("Element " +node.nodeName,0,0); } if (node.previousSibling) { BX_popup_addLine("Move up","javascript:BX_node_move_up('"+id+"')"); } if (node.nextSibling) { BX_popup_addLine("Move down","javascript:BX_node_move_down('"+id+"')"); } BX_popup_addLine("Cut/Delete","javascript:BX_copy_extractID('"+id+"');BX_popup_hide()"); // BX_popup_addLine("Copy","javascript:BX_copy_copyID('"+id+"');BX_popup_hide()"); /* if (BX_clipboard) { BX_popup_addLine("Paste","javascript:BX_copy_paste();BX_popup_hide()"); BX_popup_addLine("Paste after","javascript:BX_copy_pasteID('"+id+"');BX_popup_hide()"); } */ BX_popup_addLine("Edit Source","javascript:BX_source_edit('"+id+"');"); if (node.attributes.length > 4) { BX_popup_addLine("Edit Attributes","javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+id+"',document));BX_up();BX_popup_hide();"); } var parent_nodeName = BX_getCurrentNodeName(node.parentNode); if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"].indexOf("#PCDATA") > -1) { BX_popup_addLine("Make Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document))"); if (node.childNodes.length > 1 || (node.childNodes.length == 1 && node.childNodes[0].nodeType == 1 )) { BX_popup_addLine("Make all Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document),true)"); } } if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"]) { var elements= BX_elements[parent_nodeName]["allowedElements"].split(" | "); for (var i = 0 ; i < elements.length; i++) { if (elements[i] != node.nodeName) { if (BX_elements[elements[i]]) { BX_popup_addLine("Change to " + BX_elements[elements[i]]["name"],"javascript:BX_node_changeID('"+id+"','"+elements[i]+"');BX_popup_hide();"); } } } } BX_popup_show();}
if (node.nextSibling) {
function BX_popup_node(id){ var node = BX_getElementByIdClean(id,document); if (BX_elements[node.nodeName]) { BX_popup_start("Element " +BX_elements[node.nodeName]["name"],0,0); } else { BX_popup_start("Element " +node.nodeName,0,0); } if (node.previousSibling) { BX_popup_addLine("Move up","javascript:BX_node_move_up('"+id+"')"); } if (node.nextSibling) { BX_popup_addLine("Move down","javascript:BX_node_move_down('"+id+"')"); } BX_popup_addLine("Cut/Delete","javascript:BX_copy_extractID('"+id+"');BX_popup_hide()"); // BX_popup_addLine("Copy","javascript:BX_copy_copyID('"+id+"');BX_popup_hide()"); /* if (BX_clipboard) { BX_popup_addLine("Paste","javascript:BX_copy_paste();BX_popup_hide()"); BX_popup_addLine("Paste after","javascript:BX_copy_pasteID('"+id+"');BX_popup_hide()"); } */ BX_popup_addLine("Edit Source","javascript:BX_source_edit('"+id+"');"); if (node.attributes.length > 4) { BX_popup_addLine("Edit Attributes","javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+id+"',document));BX_up();BX_popup_hide();"); } var parent_nodeName = BX_getCurrentNodeName(node.parentNode); if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"].indexOf("#PCDATA") > -1) { BX_popup_addLine("Make Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document))"); if (node.childNodes.length > 1 || (node.childNodes.length == 1 && node.childNodes[0].nodeType == 1 )) { BX_popup_addLine("Make all Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document),true)"); } } if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"]) { var elements= BX_elements[parent_nodeName]["allowedElements"].split(" | "); for (var i = 0 ; i < elements.length; i++) { if (elements[i] != node.nodeName) { if (BX_elements[elements[i]]) { BX_popup_addLine("Change to " + BX_elements[elements[i]]["name"],"javascript:BX_node_changeID('"+id+"','"+elements[i]+"');BX_popup_hide();"); } } } } BX_popup_show();}
BX_popup_addLine("Copy","javascript:BX_copy_copyID('"+id+"');BX_popup_hide()");
function BX_popup_node(id){ var node = BX_getElementByIdClean(id,document); if (BX_elements[node.nodeName]) { BX_popup_start("Element " +BX_elements[node.nodeName]["name"],0,0); } else { BX_popup_start("Element " +node.nodeName,0,0); } if (node.previousSibling) { BX_popup_addLine("Move up","javascript:BX_node_move_up('"+id+"')"); } if (node.nextSibling) { BX_popup_addLine("Move down","javascript:BX_node_move_down('"+id+"')"); } BX_popup_addLine("Cut/Delete","javascript:BX_copy_extractID('"+id+"');BX_popup_hide()"); // BX_popup_addLine("Copy","javascript:BX_copy_copyID('"+id+"');BX_popup_hide()"); /* if (BX_clipboard) { BX_popup_addLine("Paste","javascript:BX_copy_paste();BX_popup_hide()"); BX_popup_addLine("Paste after","javascript:BX_copy_pasteID('"+id+"');BX_popup_hide()"); } */ BX_popup_addLine("Edit Source","javascript:BX_source_edit('"+id+"');"); if (node.attributes.length > 4) { BX_popup_addLine("Edit Attributes","javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+id+"',document));BX_up();BX_popup_hide();"); } var parent_nodeName = BX_getCurrentNodeName(node.parentNode); if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"].indexOf("#PCDATA") > -1) { BX_popup_addLine("Make Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document))"); if (node.childNodes.length > 1 || (node.childNodes.length == 1 && node.childNodes[0].nodeType == 1 )) { BX_popup_addLine("Make all Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document),true)"); } } if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"]) { var elements= BX_elements[parent_nodeName]["allowedElements"].split(" | "); for (var i = 0 ; i < elements.length; i++) { if (elements[i] != node.nodeName) { if (BX_elements[elements[i]]) { BX_popup_addLine("Change to " + BX_elements[elements[i]]["name"],"javascript:BX_node_changeID('"+id+"','"+elements[i]+"');BX_popup_hide();"); } } } } BX_popup_show();}
/* if (BX_clipboard)
if (BX_clipboard)
function BX_popup_node(id){ var node = BX_getElementByIdClean(id,document); if (BX_elements[node.nodeName]) { BX_popup_start("Element " +BX_elements[node.nodeName]["name"],0,0); } else { BX_popup_start("Element " +node.nodeName,0,0); } if (node.previousSibling) { BX_popup_addLine("Move up","javascript:BX_node_move_up('"+id+"')"); } if (node.nextSibling) { BX_popup_addLine("Move down","javascript:BX_node_move_down('"+id+"')"); } BX_popup_addLine("Cut/Delete","javascript:BX_copy_extractID('"+id+"');BX_popup_hide()"); // BX_popup_addLine("Copy","javascript:BX_copy_copyID('"+id+"');BX_popup_hide()"); /* if (BX_clipboard) { BX_popup_addLine("Paste","javascript:BX_copy_paste();BX_popup_hide()"); BX_popup_addLine("Paste after","javascript:BX_copy_pasteID('"+id+"');BX_popup_hide()"); } */ BX_popup_addLine("Edit Source","javascript:BX_source_edit('"+id+"');"); if (node.attributes.length > 4) { BX_popup_addLine("Edit Attributes","javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+id+"',document));BX_up();BX_popup_hide();"); } var parent_nodeName = BX_getCurrentNodeName(node.parentNode); if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"].indexOf("#PCDATA") > -1) { BX_popup_addLine("Make Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document))"); if (node.childNodes.length > 1 || (node.childNodes.length == 1 && node.childNodes[0].nodeType == 1 )) { BX_popup_addLine("Make all Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document),true)"); } } if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"]) { var elements= BX_elements[parent_nodeName]["allowedElements"].split(" | "); for (var i = 0 ; i < elements.length; i++) { if (elements[i] != node.nodeName) { if (BX_elements[elements[i]]) { BX_popup_addLine("Change to " + BX_elements[elements[i]]["name"],"javascript:BX_node_changeID('"+id+"','"+elements[i]+"');BX_popup_hide();"); } } } } BX_popup_show();}
*/
function BX_popup_node(id){ var node = BX_getElementByIdClean(id,document); if (BX_elements[node.nodeName]) { BX_popup_start("Element " +BX_elements[node.nodeName]["name"],0,0); } else { BX_popup_start("Element " +node.nodeName,0,0); } if (node.previousSibling) { BX_popup_addLine("Move up","javascript:BX_node_move_up('"+id+"')"); } if (node.nextSibling) { BX_popup_addLine("Move down","javascript:BX_node_move_down('"+id+"')"); } BX_popup_addLine("Cut/Delete","javascript:BX_copy_extractID('"+id+"');BX_popup_hide()"); // BX_popup_addLine("Copy","javascript:BX_copy_copyID('"+id+"');BX_popup_hide()"); /* if (BX_clipboard) { BX_popup_addLine("Paste","javascript:BX_copy_paste();BX_popup_hide()"); BX_popup_addLine("Paste after","javascript:BX_copy_pasteID('"+id+"');BX_popup_hide()"); } */ BX_popup_addLine("Edit Source","javascript:BX_source_edit('"+id+"');"); if (node.attributes.length > 4) { BX_popup_addLine("Edit Attributes","javascript:BX_infobar_printAttributes(BX_getElementByIdClean('"+id+"',document));BX_up();BX_popup_hide();"); } var parent_nodeName = BX_getCurrentNodeName(node.parentNode); if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"].indexOf("#PCDATA") > -1) { BX_popup_addLine("Make Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document))"); if (node.childNodes.length > 1 || (node.childNodes.length == 1 && node.childNodes[0].nodeType == 1 )) { BX_popup_addLine("Make all Plain","javascript:BX_popup_makePlain(BX_getElementByIdClean('"+id+"',document),true)"); } } if (BX_elements[parent_nodeName] && BX_elements[parent_nodeName]["allowedElements"]) { var elements= BX_elements[parent_nodeName]["allowedElements"].split(" | "); for (var i = 0 ; i < elements.length; i++) { if (elements[i] != node.nodeName) { if (BX_elements[elements[i]]) { BX_popup_addLine("Change to " + BX_elements[elements[i]]["name"],"javascript:BX_node_changeID('"+id+"','"+elements[i]+"');BX_popup_hide();"); } } } } BX_popup_show();}
button.setAttribute("src","./"+BX_root_dir+"/img/wt_"+gif+".gif");
button.setAttribute("src",BX_root_dir+"/img/wt_"+gif+".gif");
function BX_printButton (gif,width,height,id,title) { var button = document.createElementNS("http://www.w3.org/1999/xhtml","img"); button.setAttribute("border","0"); if (id) { button.setAttribute("id","but_"+id); } if (title) { button.setAttribute("title",title); } else { button.setAttribute("title",gif); } button.setAttribute("height",height); button.setAttribute("width",width); button.setAttribute("src","./"+BX_root_dir+"/img/wt_"+gif+".gif"); return button;}
function BX_printButton (gif,width,height,id,title) { var button = document.createElement("img");
function BX_printButton (gif,width,height,id,title) { var button = document.createElementNS("http:
function BX_printButton (gif,width,height,id,title){ var button = document.createElement("img"); button.setAttribute("border","0"); if (id) { button.setAttribute("id","but_"+id); } if (title) { button.setAttribute("title",title); } else { button.setAttribute("title",gif); } button.setAttribute("height",height); button.setAttribute("width",width); button.setAttribute("src","./"+BX_root_dir+"/img/wt_"+gif+".gif"); return button;}
if (e.which == 1) {
var bx_span_anchor = BX_find_bitfluxspanNode(BX_selection.anchorNode); var bx_span_offset = BX_find_bitfluxspanNode(BX_selection.focusNode); if (bx_span_anchor != bx_span_offset) { if (bx_span_anchor.compareTreePosition(bx_span_offset) & document.TREE_POSITION_PRECEDING) { BX_selection.extend(bx_span_anchor,0); } else { BX_selection.extend(bx_span_anchor,bx_span_anchor.childNodes.length); } } if (e.which == 1) {
function BX_RangeCaptureOnMouseUp(e) { try { if (e.target && BX_elements[e.target.nodeName] && BX_elements[e.target.nodeName]["altMenu"] && BX_find_bitfluxspanNode(e.target)) { eval(BX_elements[e.target.nodeName]["altMenu"]+"(e.target)"); return; } BX_get_selection(); if (e.target.nodeName != "#text" && e.target.nodeName != BX_selection.anchorNode.parentNode.nodeName) { BX_selection.collapse( e.target,0); BX_range = BX_selection.getRangeAt(0); } if (e.which == 1) { BX_popup.style.top = window.innerHeight + "px"; BX_popup.style.visibility = "hidden"; } } catch(err) { BX_errorMessage(err); }; BX_updateButtons(); BX_range_length = 0; BX_range_length = BX_range.toString().length;}
BX_range_length = 0; BX_range_length = BX_range.toString().length;
function BX_RangeCaptureOnMouseUp(e) { try { if (e.target && BX_elements[e.target.nodeName] && BX_elements[e.target.nodeName]["altMenu"] && BX_find_bitfluxspanNode(e.target)) { eval(BX_elements[e.target.nodeName]["altMenu"]+"(e.target)"); return; } BX_get_selection(); if (e.target.nodeName != "#text" && e.target.nodeName != BX_selection.anchorNode.parentNode.nodeName) { BX_selection.collapse( e.target,0); BX_range = BX_selection.getRangeAt(0); } if (e.which == 1) { BX_popup.style.top = window.innerHeight + "px"; BX_popup.style.visibility = "hidden"; } } catch(err) { BX_errorMessage(err); }; BX_updateButtons(); BX_range_length = 0; BX_range_length = BX_range.toString().length;}
var ahref = document.createElement("a");
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; }}
if (tagoptions2["popUp"] == true) { var ahref = document.createElement("a");
if (tagoptions2["popUp"] == true) { 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; }}