on 05-05-2006 11:20 AM
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,
Rael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.