- This topic has 12 replies, 3 voices, and was last updated 12 years, 1 month ago by skip8it.
-
AuthorPosts
-
skip8itMemberMy embedded google map is giving me this error. 200 times.
Unsafe JavaScript attempt to access frame with URL..
from frame with URLHow do I resolved this issue ?
please help
support-michaelKeymasterInteresting! Will need more details to isolate and fix this problem. I’ve not seen it before. Please post a design file (.mobi) that exhibits this problem for us to investigate.
Are you using the MobiOne Designer’s Map widget in you UI?
Does your app use JavaScript to dynamically update the map?
Does your UI include an HTML widget? If yes, please describe the custom html are you including?
skip8itMemberIm using the HTML widget,, because the Map widget doesnt allow me to paste in the Html code.
Here is the code…
<iframe width=”425″ height=”350″ frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”https://maps.google.com/maps/ms?msa=0&msid=203780765363734039241.0004ca3b6d9c6fabb83ce&hl=en&ie=UTF8&t=m&z=13&output=embed”></iframe><br /><small>View <a href=”https://maps.google.com/maps/ms?msa=0&msid=203780765363734039241.0004ca3b6d9c6fabb83ce&hl=en&ie=UTF8&t=m&z=13&source=embed” style=”color:#0000FF;text-align:left”>Untitled</a> in a larger map</small>
Here is the error…
Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/get/a494eb45a30445eeba99f7bbd3f80083/test.html?serverRedirectUrl=%2Fredirect from frame with URL https://maps.google.com/maps/ms?msa=0&msid=203780765363734039241.0004ca3b6d9c6fabb83ce&hl=en&ie=UTF8&t=m&z=13&output=embed. Domains, protocols and ports must match.
ms:3XHR finished loading: “https://maps.google.com/maps/gen_204?imp=asl&jsv=433b&ei=AMZcUOHpI4TniAKLyoG4Dw”.
support-michaelKeymasterThanks for details. On first glance I strongly suspect the issue is with the iframe. Can you not use a <div> that wraps the map?
Also I’m not sure what map url is loading. Can you share more details about the map properties that your app needs? Perhaps we can provide some alternatives.
skip8itMemberI would like a line on the map,, going from point (a) to point (b).. I didnt see where I could do it with our map widget. If the map widget could do that, that would solve my <iframe> issue
support-michaelKeymaster@skip8it
What u wish to do is a his able using JavaScript. Is that acceptable?
skip8itMemberI think your saying disable javascript ?
Im not sure where that is done on mobione,, and I also need my map to be interactive..
I also read somthing on the learning center, saying “For successful testing of apps with cross-domain requests, you should disable the browser’s web security feature. Click the Web Security icon on the toolbar to toggle web security on/off.”
that cured all but two errors.. the other two are..
gen_204Resource interpreted as script but transferred with MIME type image/gif.Please help
support-octavioMemberHi skip8it,
No, you need javascript enabled. What Wayne was referring to is if you are testing/previewing your app in the Test Center you may try disabling the default web security. On the toolbar is a button that looks like a pad lock. Clicking it will toggle the security on and off.
We are still pretty sure the issue is caused by the <iframe> and google map api loading. We have seen references to this from non-mobione google map users.
In a few days we plan to release MobiOne 2.2 that will include easy access to the google map javascript api. This will make it easy to update a map at runtime without need for iframe or anything like that.
skip8itMemberhello Octavio
when I turn off the security setting,, It worked,,, Im not sure if,, there is a way to do that on real devices..
if not Ill just have to wait till Wednesday,
Thank you..
support-michaelKeymasterA couple of thoughts on your approach:
1) I’m not 100 percent sure that you will have security problem if you create a native app that loads the base content locally on the device. Will see if we can spin up a test to confirm/deny (no promises though as we have a heavy load helping test 2.2)2) If you are developing a mobile webapp I believe it will experience similar web security complaints as you have already observed.
Lastly can you remind me of the extra features your map needs?
skip8itMember1) Ok,, I totally understand. Thank you for trying
2) Man that sucks
lastly …My map needs to be interactive and a line showing them the route.
skip8itMemberSo I recieved the update, ;-)…. but is there any documentation for the google map api?
how would I go about using it without the iframe?
-
AuthorPosts