facebook

IFRAME

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    ASF11
    Member

    I need to add an IFrame to my app in order to support a postMessage cross domain call. I can dynamically add the required HTML using the custom .js file but as soon as the IFrame is added to the page the app switches to Safari. I need to prevent this, the IFrame does not need to be visible in anyway I just need to be able to get a handle to it thusly

    var win = document.getElementById(“iframe”).contentWindow;

    according to the Phonegap documentation I need to add

    <preference name=”stay-in-webview” value=”true” />

    to the config.xml

    How can I achieve this in MobiOne ?

    #332086

    support-michael
    Keymaster

    @ASF11

    Q: have you confirmed that you truly have a cross-domain issue when running from native app context?

    The reason for asking is that for an app loading web content from local file system (hybrid apps like phonegap) then cross domain restrictions typically do not apply.

    #332089

    ASF11
    Member

    Yes, I am trying to upload an amount of data to an ASP.Net webservice (asmx). I have successfully achieved this via a jsonp call in the past but now the amount of data has exceeded the 2k limit of an HTTP get.

    The webservice is hosted by us, but an HTTP Post to that address results in a 500 error.

    #332090

    support-michael
    Keymaster

    >The webservice is hosted by us, but an HTTP Post to that address results in a 500 error.

    Since you own the webservice, what about enabling it for cors requests? Here is simple php example that I have used which you can use as a go-by if you choose:
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2846

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: IFRAME

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