I have to put a link in my web application for going to other application but that other application was designed to use on IE only.
Is there any way to force my link to open that site in IE when my app was run in chrome.
Related
How do you check what is the default browser to open a html file, and open it with another browser? I'm having security issues on Chrome locally, but luckily the application I'm creating allowed me to run an air application 1st. So I am wondering could there be any work around for me to open the file in other browser other than Chrome?
I'm using Phonegap + JQuerymobile to develop an Android app.
I wish to open an external link on an external browser (say Firefox, or Chrome; or let the user choose the browser).
How can I achieve this?
I have tried, without achieving desired results:
mylink.com
I also use '_blank', but I don't really see the difference.
Thanks.
UPDATE:
I've done some research, but have not found yet an answwer. I've also checked this questions, but they don't seem to solve my problem:
Links don't open in external browser in JQuery Mobile with PhoneGap: attributes _blank and _system don't seem to make a difference in my app
Open External Page in Popup in jQuery Mobile: this is using an HTML popup
Force iOS app opens external links in safari: this is for iOs apps
Opening links in external device browser with Cordova/jQuery-mobile: again the _system parameter, which doesn't show the list of browser for the user to choose from (not it's my default Chrome browser either)
other google searches
This did the job: using navigator.app.loadUrl()
full example:
(taken from: Opening an url in a new browser window in Android working with PhoneGap)
I am in the mist of creating a mobile web app and have both meta tags
I have an iphone 5 on 7.0.4
When I click on a regular link like the one below it, opens up a mobile safari window and leaves the webapp. I also tried setting the target to _self and same behavior.
Sign in
I then used my ipad which was on 7.0.3 and it worked as should, not opening mobile safari on links. I think proceeded to update my ipad to 7.0.4 and the same issue as I had on my ipad.
Anyone ran into this issue and or knows a fix ?
Thanks
Since iOS 7.0.4 all links in WebApps open in Safari. As a workaround you can use Javascript:
window.location.href='text.html'
But remember that these steps will not be captured in history (so there is no ability to use Javascript like history.back() ..).
Alternatively, if you are using a menu in your web app, try to combine iframe and Javascript, you can change the content of your iframe with this Javascipt:
document.getElementById("frame").src = new_content.html
This will prevent your WebApp to open up links in Safari and stay in WebApp view.
I'm trying to use Phonegap to build an iOS application through github. All I have in my directory is one html file and an image. The html basically redirects them to my website, which is optimized for mobile devices. However, instead of redirecting them in-app, it opens a safari window and tries to load my website in there. How do I get it to load the website in-app?
I think it would be useless to correct youut code, because Apple won't allow you to bring this app into the store. It is not allowed create just a browser. But this may answer your question: Stop iframe redirect/opening mobile safari in phonegap project
I have a web app that is intended for use as an iOS offline web app. A key feature of the app is that users can download files with extensions like .doc, .ppt, .pdf, etc. To make these available offline, I am making entries for any such files in a cache manifest.
One other caveat: the most user-friendly way I could get these files to open is to jump out of the offline web app and into Safari to actually open the file. This way, I get the "Open in {{Application}}" options that Safari provides. There seems to be some sort of disconnect during this switch from the offline web app to Safari.
Assuming a clean slate:
I've gone and wiped all the data for this site using Settings->Safari->Advanced.
I launch the offline web app while connected to the server (So we're in online mode.)
The application updates the cache successfully.
I close the web app and disconnect from the server.
I relaunch the app and all of the navigation chrome works, so we know the cache is functioning properly.
I click the link to open a file that needs Safari, so iOS switches to Safari and goes to the file's URL.
Safari says "Safari cannot open the page because the server cannot be found."
So, it seems the this application cache is accessible from the offline web app, but not Safari? Can anyone verify this?
And then going forward, if that is in fact the case: any ideas for a better way to do it? Thanks!
iOS Safari work same as Safari does. But I assumed that your iOS Safari doesn't load successfully, you know, the network of iPhone isn't fast as your PC. You must attach handlers to determine when your offline data is loaded successfully.
Check it out: http://www.html5rocks.com/en/tutorials/appcache/beginner/ and try to use JS to check status of ApplicationCache.