Community Questions & Answers
Loading byte data for pdf into web view
Hi I got data in format of bytes for pdf and i need to load this data on Webview. I am accessing webServices which give me response pdf in formate of bytes now this data i need to load on webview for ios.
Webview intermittently displays HTML content in large font size (iPhone)
I've searched around the community forums and cannot see anyone that's posted a similar problem, so here goes the issue I'm having.... I have a Titanium Window that I open modally that displays some plain old HTML content in a Webview. The Webview is...
Cros Origin issue on web view
Hi , Used HttpUrlFormatter code snippet to avoid Cros Origin issue on web view but still getting below error , Same webservice call code works fine for android emulator but when i packaged to mobile web got below error. Origin http://127.0.0.1:8020 is...
How to destroy a WebView from memory (iOS)
Hi, I'm trying to remove a webView from memory, removing from its parent component and assigning `null` value to it. This works with any other component in the same view, but not for the webView. I've tested with xCode profile tools. Using Allocations...
Android WebSettings.RenderPriority in webview
Hi, is it possible to set the render priority in Titanium for webviews? as it says [here](http://developer.android.com/reference/android/webkit/WebSettings.RenderPriority.html) . If not, what would be the steps to update the SDK/create a module for this?
External baseui content from external URL in webview
I would like to add external web content from an external web page in my webview. I haven't seen it anywhere. Is it possible? Like from this website [http://www.clover.co.za/home](http://www.clover.co.za/home) I would like to add only that text about...
Webview progressbar and webview input file
Hi ! I would like to make a webview with external URL inside (my website's webapp). Everything work except 2 things : - Progressbar : like a progressbar for a webview on Eclipse ( `onProgressChanged(WebView view, int newProgress)` ), how i could have the...
WebView evalJS problems with Alloy social builtin (Android 4.1/4.2)
We are using a modified version of the Alloy social builtin from https://gist.github.com/bettytran/4263036/raw/c317d7cf5b80be502505dd27fa5a96c07b2d531d/social.js, which fixes webview focus issues among others. Logging into Twitter (oAuth) works on our test...
Using Basic Authentication in WebView will never load the page
Hi, I'm trying to show a web page which requires basic authentication. For some reason using: ~~~ var webView = Ti.UI.createWebView(); webView.setBasicAuthentication(username,password); webView.url = 'http://myurl'; ~~~ never shows the final page. the...
Open website QR in a webView
Hi! I need (again) help. I'm using the Scandit module to scan QR codes. It works well, but when you scan a QR code only open an alert: Alert success (QR): http://www.google.com OK And what I want is to open the url in a browser. I tried this, but the...
Webview in TableViewRow - not responding to first click on Android
Hi, I have a tableview with ~40 normal tableviewrows, each row has it's own event listener. Every 5th tableviewrow is a different type of row, with a webview showing an advertisement. The advertisement is an animated gif inside a hyperlink. I need the...
Ignore certificate in webview
Hello, i'm need for testing to open a https url in a web view. The result is: [ERROR] : Error loading: https://demo.primum.es/, Error: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to...
Detect click on webview to fire event to app
Hi I'm using SDK 3.1 I'm trying to fire an event in a webview and detected it at app level. I've followed all the post I have found on this subject but I cannot make it work. I need to attach an event listener to all images, which are generated from the...
Use JavaScript files (located in applicationDataDirectory) in html
Hi people! I have a problem. I'm trying to show a local html with javascript files in a webview. I have all stored in applicationDataDirectory (images, html and javascript) and I don't know why the html load properly the images but no the...
browsing file to from webview android
i created a webview in the app. and in the HTML page i used a form to upload pics from android devices to the server. if i use the default device browser, it works great, i can browse from the gallery, select and upload any pics but if i open the same page...
Can you remote debug a WebView
I have an app that includes a WebView on iOS. Apparently, it should be possible to enable remote debugging on such apps from Safari on Mountain Lion. Can this be enabled with a webview in Appcelerator? It seems it can be done in native code like this:...
Help loading external HTML on a webView (Android)
Hello, I'm creating a webView on Android because I need to load the HTML contents of an email into my app, but I'm getting a "Web page not loaded" screen with what seems to be the content I'm trying to load but url encoded. ![Here's a...
Retrieve cookies from webbrowser to app ?
Hello, I read a lot of stuffs concerning cookeis / authentication, but I cannot figure how I could open a webpage with a webbrowser from titanium, log me in and retrieve the cookie in the app. That is the last point that I miss. It is so much easier to...
Use local images in html (Webview)
Hi! In my app I must download a image... i store it in applicationDataDirectory. then i must put the image in a html document and the html into a webview. this is my code: ~~~ function descargarImagen(urlImagen) { var f //Creamos una...
View repositioning after WebView load event
Hi, I have a scroll view (as a master container) for dynamically changing content.. The problem is; I have to put a View right after a WebView. But i couldn't manage to reposition the View after WebView is loaded (and resized) Any help is...
WebView 'load' event fires multiple times
When loading certain pages in a webview the load event fires many many times, it even causes Titanium (not the iOS simulator) to crash! EDIT: Forgot to mention it also fires way too soon, long before it has loaded completely. That's my main problem...
CSS HTML Auto-content formating
I'm developing an app where I'm unsing a HTML file. In this file the HTML tag is not properly fitted and so the text is way to big.I can scroll way to much down my mobile phone. I tried to solve the problem with the following...
web view not fitting with screen
Hi all, I am using below code to display the pinterest share, but the pinterest web view is not fitting with screen, the width of the screen is too long. How to reduce the width of the webview ? ~~~ var pinterest =...
Help with local Web Page - WebView
I have a problem every time I add this code the app just close I copy this to the app.js: ~~~ var win = Ti.UI.createWindow(); var webview = Ti.UI.createWebView({ url: 'local.html' }); win.add(webview); win.open(); ~~~ Other question is that when I add...
Webview and Videoplayer problem
Hi, I have two distincts objects which are conflicting. My window is separated in 2. in one file I have the player window on the other file I have the webview When the player is not working, not yet launched, I can play the youtube video fine. When the...
xhr POST and display the results in webview?
I am doing a POST using xhr to a login page that will redirect the page once the variables are passed. It looks like the POST is working but I am unable to get the page to display in a webview. I apologize if this is a rudimentary question but I am...
Ti.App.addEventlistener in webview freezes MobileWebPreview in Browser
Hi. I am working with a webview and local htmls. According to the documentation the way to go in order to communicate with the webview from other parts of Titanium is to add eventlistener like this:...
Untrusted server certificate error with webview.
Hi, I'm building an internal iPad app for a company intranet that needs to show webpages over https from a server that has a self-signed certificate. I'm using a standard webview (Ti.UI.createWebView()) and get the following error: [ERROR] Error loading:...
Not able to capture events at Webview
@All: I am using webview with two iframe inside index.html , iframe having src like page1.html, page2.html and then i fired event from titanium and trying to capture it at webviews js but im not able to capture event from titanium. i just wonder if set...
Webview with Ifame not able to capture app event
*@All:* I am using webview with two iframe inside **index.html** , iframe having src like **page1.html**, **page2.html** and then i fired event from titanium and trying to capture it at webviews js but im **not able to capture event from titanium**. i just...
webview crashes app due to memory error
I am loading some local images in a webview, which works fine in the simulator, but it crashes on ios device with memory warning. Is there any way to check how much memory is being used by a webview?
Open android market from within an app
I want to open up android market from within my app. To open android market you enter "market://search?q=pname:com.package.name" as the URL in the browser. Sadly, the webView cant handle that adress and gives an error "Web page not...
Message Unsupported browser type in webView
Hello, I have created a webView with a Extrenal url of a customer webpage. When I test my application in the iPad simulator I get a message that the browser is not supported. When I use the same url in Safari the url works fine. Is it possible the url...
Use a cache web in webView (Android / iOS)
Hey people! I need some help... I would like to know if I can use the cache to load a url (that I visited previusly) in a webview. Thanks anyway! Ian.
Android Webview content size is too large
I created a simple webview like below: ~~~ var webview = Ti.UI.createWebView({ width: Ti.Platform.DisplayCaps.platformWidth, bottom: 100, top: 0, scalesPageToFit:false, html: 'Hello world' }); ~~~ But when I test it on Android emulator...
Android: webview toImage() problem
In my app I use this code to make a screenshot of an entire webview: ~~~ j = 5 //number of times necessary to see the entire webview for(var i=1, x; i<j; i++){ var screenShot = myWebView.toImage().media; ...
Problems using javascript resources
Hey! I just wanna use a local html i had in resources folder that contains javascripts (.js are in the resources folder too) in a webView. but it seems not working with the javascripts... here is the code of the...
Android webview - pinch to zoom works only after a scroll occurs
Hi all, i have a strange behaviour when using webviews in Android. My purpose is to manage pinch-to-zoom gesture for images, so i chose a webview to do id. Everything works perfectly but only after a scroll. Il try to explain: when the webview is loaded...
How to release a webview
Hi everyone, I came across a seriously problem about the webview on android. Because the webview occupys a lot of memory so I want to release it after close the window which contains it. The structure of code is...
Webview html textfield keyboard bug
Hi Dudes, i've got a problem, when i want focus a html textfield on the webview. Sometimes if i foces the html textfield, the keyboard does not showing up! :( the method `webview.focus()` is not the solve! :( I use: Android SDK 2.2
WebView resize with Android Screen resolution
Hi, I created a webview and i want it to fit with all of the android screen and without scrolling so i used this code but not working: ~~~ var webview = Titanium.UI.createWebView({ url:'index.htm', scalesPageToFit:true, Width:'auto', ...
Triggering fireEvent from WebView's html.
Hey guys! **[This is on the iPhone]** I've been trying to trigger this function: ~~~ Ti.App.fireEvent('openLink', {url:"'+_myUrl+'"}); ~~~ From inside my html. Here's how it looks: ~~~ <javascript Titanium code> ... //Inline HTML...
Exact Web View Content Height
~~~ loader_func = function() { /* * Disable Touch for now. */ web_content.touchEnabled = false; if(web_content.evalJS("document.height;") > the_screen.getDeviceHeight()) { ...
Titanium.App.fireEvent(...) works in directly-loaded local HTML but not in indirectly loaded local HTML
Load a local HTML file (first.html) into a webview. A link in this html loads another local HTML file (second.html). This second.html issues Titanium.App.fireEvent(...) but it doesn't work. The same works if I load second.html directly into the webview. ...
Webview eventListeners and fireEvents seem to work/not work completly random.
so I'm working on an application that uses webview to display data. At the moment i'm trying to get data from, and send data to the webview. It seems that getting data from the webview works fine, but sending data back to the webview forms the problem. I...
Android webview - PDF links don't work
Hi, I have a webview which loads an external webpage. The webpage happens to have a link on it to a PDF. The link opens fine in iPhone/iPad but on Android the link highlights but does not open. If I open the webpage directly in the Android browser the...
setURL on an existing webview not working
Is it possible to change the url of an existing webview once its already been added to a window? The webview loads up our storefront url using a standard webview window: ~~~ var webview = Titanium.UI.createWebView({ url :...
How to create Radio-Button, Checkbox and Textfield in Android-App
Anybody any idea, how i can create radio-buttons, checkboxes, Textfields for a survey-app in android? I've try it with webview and html-code but it's not a great solution :(
link in webview
Hi, i have a webview in my android app. is it possible to get the link i click inside the webview and execute a specific native code ? thanks
[iOS] Webview with PDF shows small unsharp pages when scrolling
Setup / Problem: -------- my main program opens a new window (pdf reader window) with a scrollableview containing some webviews to view pdfs. First start everyting works fine but when I close the window and start the pdf reader window the first 3 pdfs are...