Popup or Child window in Java Script - javascript

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

Related

Can't Open URL in Safari in UI5 app in Cordova Container

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')}})

Webview in chrome packaged app cannot be full screen

I have two pages, one is "index.html". It is used by a chrome packaged app and it has a webview inside. The other one is a fullscreen.html and it has a button with function:
document.documentElement.webkitRequestFullScreen().
So I point webview to fullscreen.html. But when I wanted to click button to full screen both webview and app, nothing happened.
It sounds from your description that the request for full screen is being executed in the webview's DOM, not the top window's DOM. If so, what you describe sounds normal to me. What is in effect a child window can't be fullscreen.

inject javascript into page which loads in childbrowser phonegap

I have a link which opens in the child browser of phonegap - for those not familiar with phonegap just think of it as a new window.
The link that I am opening has an annoying alert which pops up the 1st time the webpage is loaded on the device. I would like to stop this alert poping up by trying to change the cookie the webpage uses to check if it has been loaded before.
Is this possible?
How would I go about doing this?
Little Difficult.
You could host your own html page remotely and enclose the page you are opening inside a iFrame which you could stop the alerts by some type of javascript. Or (using ajax) remotely retrieve the page you are after?

how to display the webpage using phonegap

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

Force link in uiwebview to open in Safari - with JavaScript

This has a lot to do with my previous question:
detecting UIWebView with Javascript
I would like to force a link on my webpage to be opened with iPhones actual Safari Browser, and not in a UIWebView window, even if the app it's being viewed in tried to open all links in a UIWebView window to prevent users from going out of it.
Please note that this is not a duplicate as I'm trying to do this with Javascript/Client-side, not within my own native app (I own the page that's being viewed, but can't control which app is used to view it).
I do not think this is possible. I set up one of my apps to use a UIWebView only and never open Sarfari (though admittedly I allowed only pages within a certain domain).

Categories