Community Questions & Answers

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);

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...

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...

Must wait for Web View to load

Hello, I have a web view in my app. I have noticed that I am unable to click any other buttons or table rows in other tabs in my app until the web view has fully loaded. Nothing functions until the web view has loaded and it is not as if everything else is...

pass variable to webview javascript

i'm creating a simple webview to load a google map but i'll have about 50 maps a) all.js pulls data from a local sqlite db to show the names of the maps, clicking on one of them goes to ; b) map.js which creates a webview with map.htm c) map.htm is a...

Run Angular JS inside webview

Hi, i'm trying to run an Angular JS local application inside a WebView (iOS and Android). The problem is that Angular.js makes AJAX requests to fetch the html templates, so it needs a web server to load them because "Cross origin requests are only...

remove the Webview

Got the following: ~~~ <View id="viewMap" > <WebView url="OpenLayers/map/page/map.html" id="mapPlantation"></WebView> </View> ~~~ But, I must destroy it as soon as complete an action, call the...

Android Webview blank

Trying to build an in-app viewer for external documents (url supplied by an API) ~~~ <Alloy> <Window id='docView'> <View class='header'> <Label class='headerLabel' id='title'>MY...

Webview evalJS returning null

Hi Everyone, I hope you will be good. I am trying to get some elements from the remote HTML and for that I am following the [DOCS](http://docs.appcelerator.com/titanium/latest/#!/guide/Communication_Between_WebViews_and_Titanium) I am just getting an...

Youtube iframe not working anymore on ios8

Hello! To display videos in my app I have been using the [youtube iframe solution](https://developers.google.com/youtube/iframe_api_reference?hl=nl#Getting_Started) on ios7 successfully for a while. Since I switched to ios8 the videos keep on buffering...

Huge height gap in webview

I get a lot of white spaces in the webview even though I have use ~~~ webView.addEventListener('load', function(e){ actualHeight = e.source.evalJS("document.height;"); e.source.height = textContentActualHeight; }); ~~~ to set the exact...

Restart YouTube video

I added a webview to a view and loaded a YouTube video (the url property is filled with a youtube video url): when I click the youtube red start button in the middle of the webview, iOS opens the native video player. When the video stops playing (simply...

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