tags:

views:

58

answers:

2

how is it possible using html/js to make an iphone native app build with phonegap or other html based app makers to load an url in a navigation controller without leaving the app. (sort of like the fb iphone app)

A: 

Not sure I understand the question... Are you talking about how to use UIWebView ?

TheSquad
i am trying to use html code to emulate what the in app navigational webview does...
Alx
So you want to know how to load an html page from a software made with phonegap without openning it on safari ? If this is it, i'm not sure how to do this with phonegap but in objective there is a way to tell your application if weither you want to open urls on safari or not...
TheSquad
A: 

You can use a Plugin in your Xcode project. This one was specifically created by the guys on the PhoneGap team to address the situation you desribe.

Chec out the code in http://github.com/purplecabbage/PhoneGap-Plugins/tree/master/ChildBrowser. This allows you 'spawn' a new controller (from your basic PhoneGap Native app) which pops up and has a browser in the controller. A button allows the user 'close' the view and you return to the native app.

barneymc