In R5, on the web, I was using the JavaScript code below (found on www.lotus.com/support) based on anchors to expand sections in a document in one click…
In ND6, it seems that sections are now handled via the JavaScript function _dSectionExpand(nb). Anchors aren’t generated anymore. Is there a way to render the same functionality in ND6?
.
We’re using IE6.
.
Thank you
.
Nadine
JavaScript used in R5
// expands all sections and gets positioned to tag Rinfo
function expandAll() {
var secList=“”;
// Loop through all Anchors with _Section in Anchor.name
for (var i=0; i<document.anchors.length; i++) {
var a=document.anchors[i].name;
if (a.indexOf(‘_Section’) != -1) {
// Found a section. Store its # in secNum
secNum=a.substring(a.length-1);
if (secList==“”) {
// this is the first Section found begin the list of sections
secList=secNum;
} // end if
else {
// append additional Section numbers to list of sections
secList=secList+“,”+secNum;
} // end if…else
} // end if a.indexOf
} // end for loop
// Check for ‘stop’ in QueryString to prevent infinite loop (this is for onLoad execution)
if (window.location.search.indexOf(‘Stop’) == -1) {
window.location=window.location.pathname+“?OpenDocument&ExpandSection=”+secList+“#Rinfo”;
}
} //end function