Welcome!

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

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

avoiding Unsafe JavaScript attempt to access frame with URL

hi,

i am getting this error when i try to access a particular site.

Unsafe JavaScript attempt to access frame with URL

how to avoid it.

--------
- 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"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
J4y
Contributor
J4y
Posts: 27
Registered: ‎01-19-2013
My Device: Z10 Dev Edition, Playbook, every BB in-between
My Carrier:

Re: avoiding Unsafe JavaScript attempt to access frame with URL

Same issue here - BB10 webworks - in an <iframe> 

 

"domains, protocols, ports must match". the site is in my access uri in config.xml 

 

Please use plain text.
Trusted Contributor
lathajagan
Posts: 114
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Re: avoiding Unsafe JavaScript attempt to access frame with URL

waht kind of issue u r facing, i have solved this problem. let me know if u still need help.
--------
- 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"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
J4y
Contributor
J4y
Posts: 27
Registered: ‎01-19-2013
My Device: Z10 Dev Edition, Playbook, every BB in-between
My Carrier:

Re: avoiding Unsafe JavaScript attempt to access frame with URL

want to clear the warning - 

"Resource interpreted as Script but transferred with MIME type text/html:<url> " using jQuery mobile them for BB10 - the warning is in the .js -  BlackBerry-JQM-all.min.js:

Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: avoiding Unsafe JavaScript attempt to access frame with URL

>Unsafe JavaScript attempt to access frame with URL

 

Are you loading a remote URL in an iFrame from within a WebWorks application?  Does that remote URL try to use the BlackBerry-jQM.js theme?

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Trusted Contributor
lathajagan
Posts: 114
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Re: avoiding Unsafe JavaScript attempt to access frame with URL

@J4y, were u able to solve this problem?
--------
- 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"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: avoiding Unsafe JavaScript attempt to access frame with URL

@lathajagan,

 

can you please post the solution of this

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.