You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org> on 2012/02/07 00:29:01 UTC

[jira] [Commented] (CB-98) iframe dynamically generated in javascript opens safari on iOS with PG 1.2.0

    [ https://issues.apache.org/jira/browse/CB-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201780#comment-13201780 ] 

Shazron Abdullah commented on CB-98:
------------------------------------

As of 1.3.0, there is a PhoneGap.plist setting "OpenAllWhitelistURLsInWebView" that you can set to true, and this should now work.
                
> iframe dynamically generated in javascript opens safari on iOS with PG 1.2.0
> ----------------------------------------------------------------------------
>
>                 Key: CB-98
>                 URL: https://issues.apache.org/jira/browse/CB-98
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.1.0
>         Environment: Mac OS X Lion
> Xcode 4.2.1
> PhoneGap 1.2.0
>            Reporter: Patrick Frye
>            Assignee: Shazron Abdullah
>              Labels: iframe, innerHTML, ios, javascript, safari
>             Fix For: 1.3.0
>
>
> I'm uncertain if my issue is related to this one:
> http://webcache.googleusercontent.com/search?q=cache:pxZoAitrtjMJ:https://github.com/phonegap/phonegap-iphone/issues/296+Fixed+%23296+iFrames+open+in+Mobile+Safari&cd=1&hl=de&ct=clnk&gl=de
> Comments in other threads indicated this issue was supposedly fixed in 1.2.0? Like the poster in the above thread my ExternalHosts has a string with "*". I generate via javascript and innerHTML the iframe HTML5 code because I want the window to switch between pages based upon in-App buttons. The code works perfectly with Android (see the news and events pages on Space Coast Mobile Directory on Android Market to see what I'm doing).
> The code for my app, within a javascript:
> document.getElementById("newsFrame").innerHTML = "<iframe src='http://www.spacecoastitsolutions.com/SCBMD/news" + curPage + ".html' scrolling='no' class='ne'></iframe>";
> Within the body:
> <div id="newsFrame" style="text-align:center;"></div>
> P.S. The "Affects Verion/s" dropdown didn't have an option for 1.2.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira