Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>I would start by asking : in the file config.xml the preference stay-in-webview is deprecated now for phonegap 2.3.0 right? So nothing to hope here?</p> </blockquote> <p>That's correct. Dont even worry about this setting if you are using 2.9</p> <blockquote> <p>I read and try a lot about the plugin InAppBrowser with window.open and target system / blank / self but no differences for me. I stay InApp but useless because no navigation buttons. Am I missing something here?</p> </blockquote> <p>I had a few issues getting this to work as well. Their documentation is a bit scattered and need to read it all. Here is how I get it working:</p> <ol> <li>Ensure you have <code>&lt;script src="phonegap.js"&gt;&lt;/script&gt;</code> in each of your pages that wants to use the inappbrowser</li> <li>You should NOT need to include a plug-in tag in your config.xml. I am pretty sure that around 2.5 they included inappbrowser in the core build functionality.</li> <li><p>To open a link in the inappbrowser, use this javascript:</p> <pre><code>function openURL(urlString){ myURL = encodeURI(urlString); window.open(myURL, '_blank'); } </code></pre> <p>This will open the passed URL in the inappbrowser. If you change <code>window.open(myURL, '_blank');</code> to <code>window.open(myURL, '_system');</code> it will open the passed URL in the system browser.</p></li> <li><p>Finally, your item clicks look like this:</p> <pre><code>&lt;a href='#' onclick='openURL("http://www.urlyouwant")/&gt; </code></pre> <p>Or you could attach event listiners to the object, but I think you get the point.</p></li> </ol> <p>Additionally, the InAppBrowser has a lot of event listeners you can attach to it. Take a look at the <a href="http://docs.phonegap.com/en/2.9.0/cordova_inappbrowser_inappbrowser.md.html#InAppBrowser" rel="noreferrer">documentation</a> if you are interested in those.</p> <p>Important!!!! Do not forget step 1!</p> <p>Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload