links inside an iframe with target "_blank" open inside the iframe IOS only.

Hello

I have a simple application that has an iFrame that displays a Web site. Certain links on this Web site have target = "_blank". But on iOS only, when I click on the links in the iframe, they open inside of the iframe and not in the native browser (Safari). On Android, it of very well and opens in the native browser. And given that my application is literally just an iframe, as soon as someone clicks on 1 of these target = "_blank" links, there is no button back so they essentially stuck and have to close the application and reopen it.

What I find EXTREMELY interesting is it seems that most people have the OPPOSITE problem (go figure): cordova - why links inside an iFrame are open in safari system? - Stack Overflow (and this has been posted 4 months ago).

I'm a Noob PhoneGap, so maybe I'm missing something obvious. I use PhoneGap Build compile my app... so I can't change any of the '.m' ios files (or maybe Im confused on this subject).

PhoneGap (iOS / Android / Windows)
CLI - 5.2.0 (3.9.1 / 4.1.1 / 3.8.1)

Here are some details of my config.xml file:

< src = "index.html" / content >

< name of option = "phonegap-version" value = "cli - 5.2.0" / >

< access origin = "*" / >

" < allow intention href = ' http://*/* "/>

" < allow intention href = ' https://*/* "/>

< allow intention href = "Tel: *" / >

< allow intention href = "sms: *" / >

< allow intention href = "mailto:*" / >

< allow intention href = "geo: *" / >

< platform name = "android" >

< allow intention href = "market: *" / >

< / platform >

< platform name = "ios" >

< allow intention href = "itms: *" / >

< allow intention href = "itms-apps: *" / >

< / platform >

And here's my index.html

<! DOCTYPE html >

< html >

< head >

< meta charset = "utf-8" / >

< name = "format detection" meta content = "phone = no" / > "

< name meta = "msapplication-tap-featured" content = "no" / >

< name meta = "viewport" content = "scalable user = no, initial scale = 1, maximum scale = 1, minimum scale = 1, width = device-width" / > "

"< script type =" text/javascript"src="js/jquery.min.js "> < / script >

< link rel = "stylesheet" type = "text/css" href = "css/index.css" / > "

< title > law Mobile < /title >

< / head >

< body >

< div class = "app" >

< script type = "text/javascript" src = "cordova.js" > < / script >

< script type = "text/javascript" src = "js/index.js" > < / script >

< script type = "text/javascript" >

App.Initialize ();

< /script >

" < iframe id ="webview"src =" https://MyCloud.Act.com "> < / iframe ".

< / div >

< / body >

< / html >

Hi thanks for the reply!, if I have to do something else and more, simply add


because I just tried this, but have not seen a change.

Edit... turns out I needed to do a little more on my side, but I think I got it. I had to add the following code

IFRAME var = $(#webview);

{iframe.on ("Load", Function ()}

allAs var = iframe.contents () .find ("a [target = _blank]");

{allAs.on ("click", function (e)}

e.preventDefault ();

var url = this.href;

Window.Open (URL, "_SYSTEM");

});

});

Tags: PhoneGap

Similar Questions

  • When I click on a link in my email, a net tab opens but the page is empty

    When I click on a link in my email, a new tab opens but the page is empty. It happened randomly yesterday, and now happens all links. I used a facebook link, but it goes with everything.

    Start Firefox in Safe Mode {web link} by holding down the < shift >
    (Mac = Options)
    key and then from Firefox.

    Once the browser is done loading, drop the taskbar.
    Now, try the e-mail link. Is always the problem?

    Title of test, disable your protection programs.

  • Link inside the declaration of nat in outermost interface ERROR

    Hi all

    I'm having a problem with my PIX501 w / "Cisco PIX Firewall Version 6.3 (4)", when ordering I get this caveat, is that normal? because it works perfectly fine in version 7.2 (2)...

    THE ERROR:

    PIX1 (config) # nat (outside) 1 222.127.244.52 255.255.255.252

    WARNING: Link inside the nat in outermost interface declaration.

    WARNING: Keyword 'outside' is probably missing.

    REFERENCE:

    # Sh nameif PIX1

    ethernet0 nameif outside security0

    nameif ethernet1 inside the security100

    In addition,

    Here is information on the 'outside' of the order PIX 6.3 setting

    outdoors

    If this interface is on a lower security interface that you identify by the corresponding overall statement, you must enter on the outside. This feature is called outside NAT or bidirectional NAT.

    Note from firewall PIX 6.3.2 source translation is performed before the translation of destination. For this reason, if the political source NAT allows the connection, the xlate will create, even if the traffic is denied by the policy of destination.

    Source:

    http://www.Cisco.com/en/us/docs/security/PIX/pix63/command/reference/Mr.html#wp1032129

    Don't forget to mark the answer as the correct answer or useful rate answers

    -Jouni

  • printing with printer deskjet 2050 using the black cartridge only

    printing with printer deskjet 2050 using the black cartridge only

    all solutions? PLIs answer me. thanx

    Hi d33com,

    Follow the steps below to set the black ink only.

    1. open the printing preferences (step 1)

    2. click on the Advanced button (step 2)

    3. click on the drop down arrow next to the print in grayscale to change black ink only.

  • When I start with Windows XP Home Edition, the screen appears, only the mouse arrow. Help!

    When I start with Windows XP Home Edition, the screen appears, only the mouse arrow.  Help!

    Hi stevejager,

    ·         Remember to make changes?

    ·         You receive an error when starting?

    ·         Have you tried booting in safe mode?

    Method 1: First of all, we will try to start the computer in last good known Configuration and see if it boots.

    Method 2: If it is impossible to start, try to start in safe mode. If able to start and then try to perform a System Restore, since this is a recent problem that has occurred.

    Method 3: Follow the steps in the below article mentioned.

    Computer stops responding with a black screen when you start Windows XP

  • Dynamic URL links open to the last installed only browser

    Hello

    Whenever I use a hot link URL default is Windows open this link in what is the latest web browser, I have installed

    -For example, I use Chrome but have installed Firefox also. Any link opens in Firefox never in Chrome. I recently installed Opera just to check and everything opens at the opera. Then I tried Internet Explorer and now everything opens in the browser only - never in others.

    I don't want four browsers but I want to be able to control where to open the dynamic URL links

    Thanks for any advice you can offer

    Bill

    You can set the default browser used for links in the control panel.  Just highlight the browser you want to use and select "set this program as default.  Then it will be used for the opening of the links.

  • Click on the link inside the non-Focus field

    Hi all

    I use an ActiveRichTextField non-focusable because the field is part of a larger container making screenshots click on itself - not the children. This was done to make it easier for the user to scroll up and down on a list of text fields (do not have to move the focus to a line-of-text database).

    Question:

    My customer wants to activate by clicking on hyperlink. This is done natively by the ActiveRichTextField, but it cannot be activated because the emphasis is disabled.

    Question:

    Someone has any idea how to reconcile the conflicting requirements?

    (a) the ActiveRichTextField should not be focusable on a baseline of text (if it is wrapped, of course)

    (b) by clicking on the hyperlink should open the browser, etc.

    Thank you.

    You can get the x / y position of the textfield, but translate the active regions in x / there would be rather difficult (if possible at all).
    I just looked at the API, but I don't see how you can extract the links (or information about them) as the analysis is done in the background.

    You can analyze the text yourself with regular expressions to detect hyperlinks and offer them in a context menu.
    (e.g. http://www.regexguru.com/2008/11/detecting-urls-in-a-block-of-text/ )

    I usually change my paradigma UI if it turns out that a usecase I need is not taken in charge, but it is sometimes easier to patch something on.

    Basically, your decision: change the user interface in order to support this usecase, or something (like the context menu) on this patch.

    I would say to list the options see, then speak to the customer what he likes.

  • Change links Panel to edit with Option in Lion of the Illustrator EPS files?

    We are upgrading to CS4/Leopard Lion/CS5. In our old OS Leopard we could establish files eps Illustrator open with Illustrator and PhotoShop eps files to open with Photoshop via the Get Info/change feature all. Since the update to Lion, it seems that we can do is no longer? If I change to an Illustrator eps, when I go to change a PhotoShop eps it changes it back then all the Illustrator files open in PhotoShop. I realize that the recommeded to save right now the Illustrator files option is as .ai files, but we have 17 years worth of logos customer Illustrator on files that are all in .eps format. Is there anyway to force the system to recognize them as such so that when we use the function change with in the links Panel, we can open it in the appropriate program?

    To answer the question: Yes, it will work to in InDesign. InDesign relies on the Finder or Explorer to open files related, which depends in turn Soxy do - so if you are "First Edition" on a link to a file imported, EPS Soxy will (default) intervene and ensure that the EPS opens in Illustrator or Photoshop.

  • Links inside the flash form buttons

    Is it possible to place buttons inside a flash of and use these buttons to leave the form and go to another page? I guess using GetURL would be used, but I failed to run. I also thought to make each button a button to send with a CF variable as value and then pass this value to the 'action' of the form, but again... no luck. I think I am barking the wrong branch of the tree so to speak.

    Thank you scarecrow. Which lead me to what I was looking for, use the syntax appropriate for the form element.

  • Command link inside the table to an external site in the pop-up window

    Hello
    I am currently having a command to bind inside a table that sits on the table id. I know that if I'm in control of the landing page, I use setCurrentRowKeyValue. However, I have no control of the external Web site. So I can't add it in my faces-config file. XML? I tried to put a GoLink and a GoButton but I get the illegality according to fragment error, when I put my destination URL in. An example of the format of the URL is:

    http://www.BBC.co.UK/radio? & Music = # {rank. PrimaryKey} & adf = 123

    Where I add in #{place. PrimaryKey} which is the Id of the line. I would like to have the new page open in a pop-up window, if possible.
    I don't know if this can be done in the bean to support or if my approach is right?

    Thank you very much


    Steve

    something like...

     
    

    Kind regards
    Neeraj

  • text is fuzzy inside the cursor object, only in the Viewer for android, only the latest content

    After the upgrade to the new Adobe Content Viewer for Android, text inside a sliding pixelated of blurred subject become. It looks exported with high compression JPEG.

    The same folio posted on the old version of hovercraft for Android (and also on iOS) is OK.

    Changing the settings of export of the object in inDesign are no effect.

    Someone has experienced this problem?

    For a discussion on this issue and the two workarounds, see Android - frame scrolling adding shadows .

    Neil

  • When I "Open link in a new tab" it does not load the link, I have to stop and refresh the tab to load the linked page

    The title of the question pretty much explains the problem.

    EDIT: "Open Link in New Window" works very well, as by clicking on a link or bookmark to switch from one tab to the linked page.

    "Reload Tab" does nothing. The page loads only when I stop and reload.

    Sorry to bother you, but I think I just solved the problem.

    In the last three days I closed & restarted Firefox several times and stop & restarted my computer twice without solving the problem, but I just started, open Firefox in mode without failure, then closed & restarted Firefox and "link in new window open" seems now function normally.

    Now I feel like a fool for not trying that before asking the question.

  • I have the windows open again in a new option to the selected tab but it always opens in the same window.

    Firefox v28.0, Mac OS X 10.9.2, 3.5 GHz Intel Core i7.

    Running in safe mode. In the Preferences menu, I have the "open new window in a new tab instead" box checked but when I click on links the new page opens in the current window. If I order click on I have the ability to open the new window in a new tab

    The setting in tools > Options > tabs: "new pages should be opened in ': 'a new tab/window' is for links that specify a target window to open the link.

    This option allows to divert these links into a new tab instead of a new window.

    Links that do not specify a target still open in the current tab, unless you redefine with a middle or click Ctrl left click (new tab) or a left click UPDATE (new window) or via the context menu.

  • New window opening when the problem of double click even if I haven't changed in folder option but it not worked

    Dear sir\madam

    I am using the windows 7 every time I am double clicking in the drive and the folder open in the new window only. I even changed this option in the FOLDER AND SEARCH option, but it is futile his does not work. Friends by saying: it is a virus. Please help me solve this problem.

    Thanks and greetings

    AURÉLIE

    I am not sure, I've not had the problem myself, but a quick search found this - http://answers.microsoft.com/en-us/windows/forum/windows_7-files/folders-open-in-new-window-despite-folder-option/5fba3897-7655-4068-8992-2d8b20063b3f

    Good reading and see if you think it's the same problem. If so and the choice of folder option certainly does not work for you, there are a few things to try to make up a batch file and it works from a simple sfc/scannow (I have not tried but it is marked as answer).

    It will be useful.

    If you suspect a virus, update your anti-virus software and run a full scan, then download, install, update and run a scan complete with (free) malwarebytes. Just run as free on demand, no need to check for any trial etc.

  • Oracle fusion tax and its integration with the application third-party to the functional aspect only.

    Hello

    I'm looking for some details / documents in which Oracle merger tax and its integration with third party requested to the functional aspect only. Could someone please help to fix the required details.

    Thank you... Sandeep

    Hi Sandeep,

    have you looked at these docs for Fusion Apps Financials / ERP Cloud?

    -Implementation of the tax- http://docs.oracle.com/cloud/latest/financialscs_gs/FAITX/toc.htm

    -To tax assistance - http://docs.oracle.com/cloud/latest/financialscs_gs/FAUTX/toc.htm

    "Implementation tax" contains a chapter on 3 third-party integrations. Is that what you are looking for?  If not, can you clarify what you mean by 'integration with 3rd party applications'?

    Thank you

    Oliver

    Fusion applications Developer Relations

    https://blogs.Oracle.com/fadevrel

Maybe you are looking for