Open links from non-native app in Safari app - iphone

We are creating a non-native iPhone app that will eventually go through the phonegap process. But what I'm trying to do right now is: We have links that open in Twitter and LinkedIn, but when clicking them they open right in the same app window. Is there any way to force the links to open in the actual Safari app. It looks like this is possible with Objective-C, but I don't see how to do it with HTML. Thanks!

http://solutions.michaelbrooks.ca/2011/02/15/open-external-links-in-safariapp/

Related

How to make a plugin like app in iphone

I want to make an plugin like app in iphone for mobile web browser, in which i want to use safari (or any browser) current link and also link which is present on the web page, when i click on it my app should invoke for using targeted link.
I know plugins are not supported in mobile browser,
Can anybody have any solution without jailbreak?
Thanks in advance.

how to create a webview in blackberry which allows me to only view the page and disable all other options

How to create a webview which gives me only option of viewing the webpage and the rest of the options should be disabled.
BrowserSession browserSession = Browser.getDefaultSession();
browserSession.displayPage("http://www.google.co.in/");
I tried this code but not able to disable the options in the browser.
Looks like you have the wrong tag of 'blackberry-webworks' for your post, sounds like a Java question?
In any event... BlackBerry WebWorks is essentially a webapp/webpage running natively on a device.
If you were to use WebWorks for development, you would simply create a webpage (html, css, javascript), and create a config.xml file which tells the SDK what your app is, what it wants access to do on the device, and request needed permissions, etc.
Once packaged, your app would run like any other app on the device. The cool thing about WebWorks is technically you can create a launcher for a website. It again would look like any other app, have it's own icon, and launch in it's own webview. You wouldn't have any of the browser address bars, or anything like that, so this may be the way to go.
If you want some 'Getting Started' info, check-out the HTML5 WebWorks webpage
I got the solution. It may help somebody
BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();
myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER);
BrowserField browserField = new BrowserField(myBrowserFieldConfig);
add(browserField);
browserField.requestContent("http://www.google.co.in");

open app in mobile safari browser

I have been using the uiwebview for a app that consists a index.html,css and javascript files.I'd like to do away with the uiwebview and open the app in the safari browser instead.All source files are located within the app bundle.Is it possible and if so can someone point me in the rite direction.Thanks in advance for any help offered.
In the iPhone OS, any application runs in a sandbox environment, which means that it cannot access files (like your index.html,css etc) that resides in other applications bundles.

Following a html link from an iphone app

I have a couple of html links attached to buttons in my app.
I'm just wondering whats the best practice for following a html link in an iphone app.
I'm not sure if the app should exit and open safari or if a web container should be used etc.
There's no real best practice, it's whatever you think your users would appreciate. Some apps offer the best of both worlds, by putting a UIWebView in their app to view web content and then a button to open the same page in Safari.

Add bookmark to Safari on iPhone when an application is installed?

I'd like to add a bookmark to a users Mobile Safari bookmarks when they install my iPhone application.
I don't want the user to have to do it manually, i'd like my iphone app to install the bookmark (actually a javascript based bookmark, e.g. javascript:)
Does anyone know of anyway to do this?
Not currently possible. The best I've seen is launching a page in mobile Safari with instructions on how to manually add the bookmark, or telling the user to add it on desktop Safari and sync the bookmark back to the iPhone.
This is not currently possible. If it's something you'd like to see, you should file an enhancement request with Apple.