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

Javascript error in portal - Access is denied.

Hello All,

We have a custom portal page and we have embedded it into portal such that we get a Loading image while the page loads up.

So we have re-directed this through the URLview -

http://hostname:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appdesigner.framework.loading

and the parameters - contentUrl - link to the page we want to show and LoadingStr = Loading...

However this iView works perfectly fine when attached to a role and then through portal framework.

But when we embed this into an iFrame we get the below Javascript error message -

I also made sure we have Permissions assigned to the security zone for com.sap.portal.appdesigner.framework.loading.

Below is the javascript error details -

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MS-RTC LM 8; InfoPath.3)
Timestamp: Wed, 25 Jul 2012 14:52:29 UTC


Message: 'EPCM.getSAPTop().LSAPI' is null or not an object
Line: 111
Char: 17
Code: 0
URI: https://hostname:port/irj/portal?NavigationTarget=navurl://73565a7e52760130fa72a7450521bfa5&NavMode=1&ticket=ST-679-Ws2TSmYu0DjiO9Hfvoau-cgunx187


Message: Access is denied.

Line: 112
Char: 2
Code: 0
URI: https://hostname:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appdesigner.framework.loading?contentUrl=%2Firj%2Fservlet%2Fprt%2Fportal%2Fprtroot%2F%2Fpcd%213aportal_content%212fcom.sap.portal.migrated%212fep_5.0%212fpages%212fcom.sap.pct.hcm.pcr&loadingStr=Loading...


Message: 'undefined' is null or not an object
Line: 86
Char: 3
Code: 0
URI: https://hostname:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appdesigner.framework.loading?contentUrl=%2Firj%2Fservlet%2Fprt%2Fportal%2Fprtroot%2F%2Fpcd%213aportal_content%212fcom.sap.portal.migrated%212fep_5.0%212fpages%212fcom.sap.pct.hcm.pcr&loadingStr=Loading...

Any thoughts please... Appreciate it !!!

Thanks and Regards,

Samta.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 05, 2012 at 05:32 AM

    Hi Samta,

    This note: 1612008

    explains the issue you are facing.

    Best Regards,

    Saar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2012 at 04:52 AM

    Hi,

    Are you using the AFPisLoaded event ? You need to subscribe to this event and put your scripts inside. this event will fire after all AFP have been loaded and are now ready for use.

    example:

    EPCM.subscribeEventReliable('urn:com.sapportals:navigation', 'AFPisLoaded', function _afpLoaded() { //write your script here });

    also, hope this guide helps you:

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70bfe58d-1ed9-2d10-42b6-821d62777d6f?QuickLink=index&overridelayout=true&50599009721255

    please note this guide is for 7.3 SP1 and higher.

    regards,

    Saar

    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.