Skip to Content
avatar image
Former Member

Manipulating the "How to...display comments" using javascript

Hi all,

I had the ‘grand’ idea of pulling the comments (re the How To..document) into my web planning page and positioning them wherever I choose.

This is possible if I can ‘get in’ to the iframe, read the HTML and then manipulate the items positions etc…BUT…I am getting a “permission denied” javascript error when trying to access the contents(html contents) of the embedded BSP (which has been set up per the “How to display comments in web” document).

The reason for the error, from my research, has to do with the security around scripting across iframes – i.e. scripting between my WIB page and the embedded iframe (BSP) page which contains the comments.

Further research has also indicated that cross-frame-scripting is only possible if the domain property of both the parent web page and the iframe embedded page are set to the same domain name….

This I did using javascript statement in a text island in my WIB:

document.domain = "MYDOMAIN.COM";
document.getElementById('myFrame').document.domain = " MYDOMAIN.COM";

Unfortunately it has not solved my problem….

So, are there any technical geniuses out there who can suggest the correct way to use javascript to read the HTML data in the embedded iframe without raising a ‘security’ error…..?

Thanks and regards,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 05, 2006 at 10:44 PM

    Hi Rael,

    this seems to be a general issue regarding BSP. I suggest to post it to the Business Server Pages (BSP) as well.



    SAP NetWeaver RIG

    Add comment
    10|10000 characters needed characters exceeded