Skip to Content
author's profile photo Former Member
Former Member

URGENT : Portal page : Execellent reward

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 08:07 PM

    Hi,

    Extract the file com.sap.portal.navigation.toplevel.par and edit the file toplevelnavigationJS.jsp under PORTAL-INF\pagelet.

    Good luck,

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 05:47 AM

    How come all your messages are URGENT?..then what is NORMAL for you..this is not OSS where you can raise message with "High Priority" alias "I Dont Know"

    "Pls reward points if problem is solved" in signature

    does not mean people will do free SWAT consulting for your Excellent Reward

    -D

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.