Skip to Content
avatar image
Former Member

Customize log-off url in AJAX framework page (Netweaver Portal 7.5)

Hello Experts,

I am trying to customized log-off url based on certain conditions in AFP.

As of now ,we are using classic framework page where we have GetLogoffURL(IPortalComponentRequest request) method in Masthead to implement custom code. This GetLogoffURL() method is called on "logoffform" action ( <form name="logoffForm" style="display:none;position:absolute;top:-5000;left:-5000" action="<%=GetLogoffURL(componentRequest)%>" method="POST">). The custom log-off url is set in the method GetlogoffURL() based on the header variable (String strHeader = request.getServletRequest().getHeader("JUNIPER_URL");).

I would like to implement same functionality in AJAX framework page. Upon digging into the JS file of AFP resource, I found sessionPlugin.js file , where I could see the code for logoff form.

var form = document.createElement('form');

form.method = 'post';

form.style.display = 'none';

form.appendChild(input);

form.action = logoffURLComponent;

form.target = "_top";

document.body.appendChild(form);

form.submit();

Following code is present too: form.action=logoffURLComponent where is seems that logoffURLComponent is initialized in the below code

//the init function is activated from NavigationFPMListener

var init = function (initExternalUrl,initSilent,initLogoffURLComponent) {

externalUrl =initExternalUrl;

silent =initSilent;

logoffURLComponent = initLogoffURLComponent;

};

My query is how do I implement logoffURLComponent in this AJAX framework page as its already being initialized? Should I create a new method(similar to getlogoffURL() whose return value I will assign to logoffURLComponent in "init" method?

Regards

Priyanka

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 27 at 04:05 PM
    Add comment
    10|10000 characters needed characters exceeded