I'm developing one application for iphone using phone gap.I that I need to display the web page when we click on one button. I designed that button using html. How to display the webpage?
attach a click handler to that button and use this http://jquerymobile.com/test/docs/api/methods.html
you will need to use a phonegap plugin in called childBrowser which will help you to show an external webpage without leaving your app check it at ChildBrowser for android and this is ChildBrowser for ios
Related
My problem is modifying the description of modal when google maps ask to.
Here's the default text provided in android device
Here's the default text provide in Desktop
I'd like to edit "> Know your location" text.
I've tried the solution written in here: https://github.com/dpa99c/cordova-diagnostic-plugin/issues/290
But it has no go because we're using InAppBrowser for our Google map to be accessed and Cordova plugins (AFAIK) doesn't have the functionality to modify alerts of an InAppBrowser
PS: We're submitting an iOS App and Apple requires us to modify the content of the modal. So..
I have developed an SAPUI5 app that works on browser, and I am trying to make it an iOS build by wrapping it in a Cordova container.
In one of the pages of the app, I defined a button that when it is clicked, it should open up a separate Safari window (see code below), however, when I test this functionality, it opens the URL directly in the application.
Therefore, if I want to go back to the home page of the app, I need to kill the app and restart it.
I have this same problem with and without the inappbrowser Cordova plugin.
Does anyone have any ideas of a possible resolutions for this? Appreciate the help!!
var button= new sap.m.Button ({icon: "sap-icon://meal"
, press: function (oEvent)
{window.open ('MYURLHERE', '_system')}})
I tried with different options for automatically making a page full screen using javascript
I tried with the window.open("index.html","","fullscreen=yes,location=no, cursor=none");
I tried with the Native FullScreen JavaScript API- It only works on a button click or any other events , but I need to make the page automatically open on fullscreen.
...I need to make the page automatically open on fullscreen
You can't, and for good reason. That's why the fullscreen API (and window.open, typically) only works in response to a user event. It's by design to prevent web pages from hijacking the user's workspace.
Can we open an ios WebView page from HTML5 using javascript?
I have to redirect to the native ios page from the javascript code on a button click. Is this possible?
I have gone through some links as mentioned below,
How to open a native iOS app from a web app
http://blog.grio.com/2012/07/uiwebview-javascript-to-objective-c-communication.html
But, am not pretty clear with the solutions.
Please help me with your answers and with some proper links.
As you are able to receive/send messages from and to JS. I hope you have UIWebView is added as subview in one of your viewController's view(self.view). Pass the Java script message to your ViewContoller do action here. take for an example you want to present you do it from here.
Am developing a web application using phonegap. There is one issue where i need to bring a Child window on top of main window more like a popup. The child window is basically a notepad(textarea).
I tried to use onClick=window.open but it dint work in android emulator. And there is an api for phonegap which is loadurl .. but it actually takes to the next page (full screen) but not as an popup.
Could use ur inputs on How to create a popup window in javascript which works in android emulator
Thanks
Thilak
use http://dev.jtsage.com/jQM-SimpleDialog/
u can download from here http://dev.jtsage.com/jQM-SimpleDialog/demos/install.html