URGENT : Portal page : Execellent reward
Posted: Sep 27, 2005 12:07 PM Reply
Dear Gurus,
There is some problematic (non-standard) HTML coming out of the EP that requires some minor change to support the reverse proxy. I am unsure of what source files gernerate it, but here is what I do know:
The problem lies inside a javascript function called "render" which is visible from "view source" from the home page (after logging in). This is the same in ESS or ISS, so it appears to be basic EP code. Here is the function declaration:
function render(level, id, isActive, isHover, isLast, firstLevelStyle) {
The line which is a problem is:
sepTD =" <TD nowrap class=\"prtlTopNav2ndLvlSep"sepClassSuffix"\"> | </TD>"
The problem is first that this script block is inside a TD element in the BODY and not in the header.
That, however, might be more difficult to change. The big problem is that the script block contains other HTML tags ("</TD>" in this case) which will be parsed incorrectly.
The easy solution for this is to change the line to:
sepTD =" <" + "TD nowrap class=\"prtlTopNav2ndLvlSep"sepClassSuffix"\"> | </" + "TD>" It looks to me like there will be another problem with this at the bottom of this function where it returns some HTML: return "<TD nowrap id=\"navNode_" + level + "_" + id + "\" " + "onkeydown=\"navNodeKeyDownHandler(" + level + ", " + id + ")\" " + "class=\"" + tdClassName + "\" " + onMouseClickEvent + onMouseEnterEvent + ">" + "<A id=\"navNodeAnchor_" + level + "_" + id + "\" " + title508 + " href=\"#\" " + nodeName + " class=\"" + aClassName + "\" tabIndex=\"" + tabIndex + "\" " + accessKey + ">" + visibleTitle + "</A>" + "</TD>" + sepTD + lastTD;
This would need to be changed to: return "<" + "TD nowrap id=\"navNode_" + level + "_" + id + "\" " + "onkeydown=\"navNodeKeyDownHandler(" + level + ", " + id + ")\" " + "class=\"" + tdClassName + "\" " + onMouseClickEvent + onMouseEnterEvent + ">" + "<" + "A id=\"navNodeAnchor_" + level + "_" + id + "\" " + title508 + " href=\"#\" " + nodeName + " class=\"" + aClassName + "\" tabIndex=\"" + tabIndex + "\" " + accessKey + ">" + visibleTitle + "</" + "A>" + "</" + "TD>" + sepTD + lastTD;
Pls let me know how this can be implemented.
Thx.