Community Questions & Answers

Webview Question

When using a webview what rendering engine is used? Is it the same for each OS version or does it depend on what browser the user has selected as the default? I have an app that is basically a hybrid style app primarily displaying html5 via webview. I'm...

Busting

Hello, I have a webview that loads a remote page into an iframe element. From the iframe I want to post a message to its (local bundle) parent window. This thing (iframe busting) perfectly works if I create and load an HTML file into my browser from my...

pixelization in webview

- Application type: mobile - Titanium SDK: 3.5.0.GA - Platform & version: Android 4.4 - Device: physical device smasung galaxy not 4 - Host Operating System: OSX 10.9.5 - Titanium Studio: version, 3.4.1.201410281727 - a simple test...

Detect Webview URL Change

I'm trying to sort out what event to attach to to detect when a webview's url (location) changes. The sequence of events would be: 1. Open webview to http://domain-a.com 2. User completes form, gets redirected to...

WebView Url Issue

I Have issue with url , url redirect to anther page in webview , but if i use it in chrome browser work done. <WebView id="webView" ></WebView> $.webView.url = link;

Webview URL returns local path

Hi peeps, I'm having problem with WebView both in Android and iOS. At the moment I have this WebView which shows HTML page from a POST request ~~~ var xhr = Ti.Network.createHttpClient(); xhr.onerror = function(){ //Print error }; xhr.onload =...

Videos in Android webview

Hello, I have searched a lot abot videos and made many unsuccessfull tries. Then I ask it here. What are the thing I must be aware of in order to make a video playing and displayed in a webview. Titanium 3.4.1, Android 4.2 and 4.4 I tried with a youtube...

How to detect if an app is loading data from the network

mobile, Titanium Studio, build: 3.4.1.201410281727, iOS 8.1.2, iPhone 5c and Simulator, OSX latest. I am trying to do a custom ProgressBar to display when data is loading in a webview. The data is internet traffic so I have no control over how it is...

Difference with webview in IOS to Android

Hi All, I seem to be getting a issue with the webview on Android it works perfectly on IOS no problem at all but on Android the menu seems to popup etc almost like click events are firing onload, This video shows the issue. [Android webview...

Unable to zoom

Hi all, I am developing a flipping book application. I have a window that contain a scrollableView. In this scrollableView, I have webViews that contain imageViews and textAreas. The problem is that I cannot zoom, knowing that I am using the...

Android : Pass Data to WebView

Hi, Is there any way to pass data to web view before the page has been loaded.??? 1) evaljs is not working with beforeload method 2) parameter passing with html is not working 3) Is there a way to pass data as cookies to webview from titanium(before...

Add map url for web view

when i set web view url with map url it not work: var web = Ti.UI.createWebView({url:'https://www.google.com/maps/dir/30.7933951,31.0122212/24.8656663,46.6900963/@12.0709955,-6.1685376,3z'}); window.add(web);

Open URL in new webview tab/window

Hi everyone, I am trying to get an online payment working in my app. The problem is some online banking systems will open a webpage in a new tab/window. The WebView in Titanium only works in a single instance so instead of opening a new WebView, it will...

Webview does not load CSS of website

I've been building a css file for a webpage that's being loaded in by a webview in my app. I'm using Chrome's 'device mode' to view the webpage and how the CSS changes the layout when it's being viewed by an other device. In the device mode everything...

Strange code when using Webview

I have this code in alloy app: ~~~ var webview = Titanium.UI.createWebView({url: '/html/index.html'}); $.index.add(webview); $.index.open(); ~~~ The problem is that when i opened it in ipad some strange code appears at top of the page: ~~~ return r};...

Android webview ping is not stopping

Hi, I have local webview page which pings server url on regular interval using javascript inside the page.When I am clicking device back button I am calling this function to clear webview from memory. $.window.addEventListener('androidback',...

How to get html content remotely and open localy

I want to get the content remotely for a html page and open localy in the webview. But I want this html to have access to the Ti namespace, so it implies that the html must be running localy. Have tried to create the webview passing the content as the...

fireEvent from webview to window

Hi, I'm learning Titanium by developing a simple iPhone app, and it's coming along pretty good. However, I've been trying to figure out how to get fireEvent to work and after checking out different examples I just cannot get it to work (probably missing...

Android Webview is not taking cookie

Hi, I am redirecting to web view from titanium code through event firing/listening.After redirecting to webview html page I am setting cookie using document.cookie and redirecting to another html page using javascript location.href function.In that html...

Showing 1-50 of 1,925 1 2 3 4 5 639