Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Trusted Contributor
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

not able to access contentWindow

Hello All,

i have an iframe and its a cross domain url, i have already in config.xml access element added for that cross domain url, even though i do this , i am not able to get contentWindow of that iframe and its coming as undefined.

my usage is like this:

document.getElementById("loginPageFrame").contentWindow; but it gives me undefined value , i need this contentWindow for doing some operation ,i have tried already many possibilties like this:

var appframe = $(frames['iframe']);, even this gives me an empty element.

please help me in getting the content of my iFrame.

- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"