facebook

Google Maps

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #330342 Reply

    skip8it
    Member

    My embedded google map is giving me this error. 200 times.

    Unsafe JavaScript attempt to access frame with URL..
    from frame with URL

    How do I resolved this issue ?
    please help

    #330348 Reply

    support-michael
    Keymaster

    @skip8it

    Interesting! 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?

    #330374 Reply

    skip8it
    Member

    Im 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&#8221; 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&#8221;.

    #330375 Reply

    skip8it
    Member

    Here is the .mobi

    Attachments:
    You must be logged in to view attached files.
    #330377 Reply

    support-michael
    Keymaster

    @skip8it

    Thanks 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.

    #330398 Reply

    skip8it
    Member

    I 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

    #330402 Reply

    support-michael
    Keymaster

    @skip8it
    What u wish to do is a his able using JavaScript. Is that acceptable?

    #330671 Reply

    skip8it
    Member

    I 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

    #330678 Reply

    Hi 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.

    #330710 Reply

    skip8it
    Member

    hello 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..

    #330712 Reply

    support-michael
    Keymaster

    @skip8it

    A 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?

    #330715 Reply

    skip8it
    Member

    1) 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.

    #330883 Reply

    skip8it
    Member

    So I recieved the update, ;-)…. but is there any documentation for the google map api?

    how would I go about using it without the iframe?

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: Google Maps

You must be logged in to post in the forum log in