Community Questions & Answers
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...
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...
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...
Email dialog HTML ignores some tags
I'm currently building an app that has Email sending capabilities. I'm trying to send an Email with the relevant information and includes a link to the original post that is being sent. the original post is created as an HTML code segment, so I have to...
email html with android
Hi, i have this code : ~~~~~~ var emailDialog = Titanium.UI.createEmailDialog(); emailDialog.html = true; emailDialog.subject = 'subject'; emailDialog.messageBody = '.....<img src="remote.png" />....'; emailDialog.open(); ~~~~~~ on...
Android HTML Email Limitations.
I am creating an html email dialog for Android, and trying to include an img tag that points to a remote source. This works fine in iOS, but just shows a little box with the text "obj" inside the Android email client. Am I missing something, or...
Generate pdf for attach on email
Hi im new with this plataform and i need to create the PDF file with a few data, i need to pass webview to pdf and then attach on email. you have any example code
HTML parser
Hello, I would like parse html result but I don't know exactly how. I make this code : ` htmlparser.js exports = {}; htmlparser = exports; soupselect.js var domUtils = require("include/lib/htmlparser").DomUtils; var domUtils =...
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...
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
How to get a large HTML content of Websites in Android
Hey, I need to fetch the html source of some websites, the html is so long, how can i get all or save them in my local; I used HTTP request but i think its not working properly. I need this code for Android my code is this: ~~~ var xhr =...
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...
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 :(
Titanium iOS- To Display bargraph based on datas from db
In my app, how to display a bargraph based on the datas from the db?, how to fetch datas from db to plot a bargraph?
The whole window view scroll up if the keyboard showing up by focused the HTML-Textfield
Hi Dudes, I've build a webview in a window. also i add one button in the window. In the webview i've build htmlcode with some checkboxes and a textfield. and my problem in this case is the following: if I focused the html-textfield and the keyboard...
embed html url parameters
Hi! I need to embed some local html files in a native app (Android and iOS). I've loaded the index in a webview and it works. Then, Html files pass parameters to other html through url (defined in href). It works fine on iOS simulator and Android...
adding long text to label in multiple line
Hi, I want to put a long text in label. Its about 15 lines. So what is the procedure to add this text to label in multiple line. ~~~ var label1 = Titanium.UI.createLabel({ top:100, color:'black', text:"adfafds fdskjfk dsfjklsdjfkldsjfkl kdjf...
Webview while zooming black screen is coming
Hi Guys, While zooming the webview in my application.black screen is coming and going.recently i updated my os to 4.1.earlier it was working fine.this is happening in __sumsung __ device.using 1.Titanium SDK:3.0GA 2.Platform &...
Javascript and HTML
Hi, I write function in app.js and i created a web page, i want to call the functions written in javascript from html it is possible? Thanks in advance
Html and map Problem
I created a web page called index.html and load this web page in my js file like this: ~~~ var webview = Titanium.UI.createWebView ({ top : 0, width : 320, height : 400, url:'index.html' }); ~~~ also in js file i created a map called mapview i...
WebView - Local and remote content is displayed differently
In my app I'm displaying instructions in a WebView. If the device is online I set the url to point at a remote resource otherwise I set the url to point at a local resource. Both resources have the exact same content (HTML) today. My problem is that when...
play embedded video in android in web view
I want to play video in android web view. I am using embedded HTML code to open it in android web view. My device has flash player installed in it. when I play the video then I am getting sound of video but there is no picture or video displaying. please...
Compress/Minify HTML String
I have a webview that passes back the source HTML string to my app. I want to compress or minify the HTML source string so that it doesn't have any extra white space or line breaks. Has anyone come across a JavaScript library that can accomplish this...
How to load(lazy loading) div in webview ,whenever that div is visible
Hi guys, how can we achieve a lazy loading of div's according to scroll position in webview for android 4.0.3 device. **using** 1. Ti sdk: 3.0.0 GA 2. Platform & version:android 4.0.3 3.Host os: windows7
webView problem
Hi, I'm developing on android using sdk 3.0.0 I'have a problem with a webView here is the code : ~~~ var legalWebView = Ti.UI.createWebView({ top: 66, backgroundColor: 'red', html : '<html><body><h1>Some...
ant.properties: where we must place this file for permit APK to load from folders starting with "_" or "."
Hello everybody (I'm on Windows)! I'm new at Titanium Studio (essentially for write some mobiles apps!). I figure how I can load files (images/sounds/others files) from a folder starting with a "_" or a "." Actually I have the path...
Normal html inputs, labels,... with the last letter cut off
I have a desktop application that is built with HTML code and what is happening is that all word inside inputs, labels, paragraphs have the last letter cut off. For example if I put the number "1", I almost can't see that is the number one,...
html page
I inserted some data into a database. Then I created a html page. Please provide some sample code to retrive the data from the database and put it into the html page.
How to load a local javascript file in webview?
I've been playing around with WebViews, and I seem to be having trouble loading a javascript file from the Resources directory, while loading from remote sources via http works fine. Currently testing on Android emulator, do not have access to iPhone...
Parsing badlly written HTML
Hi all. I'm trying to get some values out of a small piece of HTML in Titanium. I tried to use this library: https://gist.github.com/bob-sims/4406293 as answered in another question but I just can get anything out of it. The fact that it has no...
iFrame in webview
I have a url (http://test/html) that is displayed on a webview. Now i have another url (https://blablabla.html?123872). My question is how do I display the second url within iframe inside of the webview. Both url listed is just an example. I'm using 3.0.2...
webView evalJS() works very slow!
Hi Dudes, in my application I work with webview and html code. if i use the webview function `webview.evalJS()` the output comes very slow! :( any idea why it works slow?
Android Webview setHtml and UTF-8 characters
I work on an *Android* project, have a *webview* and would like to set a *utf-8* html content via *setHtml* respective the html property. Currently I work under MacOs 10.8.x and use Titanium Studio 3.0.2 with *SDK 3.0.2.GA*. Encoding for files is set to...
Color coding Aptana 3 nightly
Hi, I used Aptana 2 long back ago. Then i switched to dreamweaver. And let me tell you, Its quite good and really fun to work on. Now i want to switch back to Aptana but i'm finding little difficulty using the new release. You see, in dreamweaver you can...
label text
my webservice returns the value in html text as "<b>turn</b> to left, <b>move</b>straight" . Can i set this as the text of the label ??? will this work??? thanks
Web app => Hybrid?
Hello all, Right now I'm using a web application with Primefaces (JSF-lib), consuming a web-service using xml. Now I want to make a native app with Titanium for android, iphone, ... I was wondering if there is any guide to doing this? Is there a MVVM...
HTML saved into SQLite
Hi I have a JSON feed that returns some HTML and then I'm trying to save that into my SQLite database, but the HTML seems to be causing issues with my code. Can anyone advise how to save HTML into the database, is there an encoding function or something...
Webview HTML with relative path includes not working in 3.0.2
Going from Titanium SDK 3.0.0GA to 3.0.2GA, relative paths in my webview's HTML are no longer working (the path doesn't seem to point to the same place anymore). __Here's what I'm working with (simplified):__ my webview: ~~~ var myWebView =...
ti.app.addeventlistener + ti.app.fireevent
hello. it's my first question here. here's my situation. I have a html +css + jquery well working project that I want to adapt in titanium. This project has geolocation + fb api call. I want to adapt my project into a titanium html5 project. What I...
How to Select and upload image by
Hi all. A question on Android enviroment. I want to choose and upload an image, selected from gallery, by an html "input type file form" in one webview. Below the simple html code index.html ~~~ <form...
Using an iframe within web view
Hi guys, I have a html that i need to display within iframe, which is inside a web view. Problem is I never use iframe before so I need help and example in how to use iframe. I'm developing for IOS with SDK 2.1.4.
including jquery mobile and css in titanium for android
can anyone suggest how can i use jquery mobile in titanium for android app development? where to include the .js files and the .css file (jquery mobile .js and .css file)?
Problem with a html-created Textfield in Webview
if I click on a html-created textfield the android keyboard doesn't popup! :( ~~~ var html_code = "<html><head><meta name = 'viewport' content = 'user-scalable = no'></head><body><input type='text' name='firstname'...
Can't get Value of HTML-created Textfield
Hey, i've the following problem, ~~~ var html_code = "<input type='text' id='1' value='Hello' name='textfield'>" var text_value = webview.evalJS('document.getElementById('1').value'); var webview = Ti.UI.createWebView({ html :...
Can I create a Web app for Android OS with HTML, CSS and Javascript from Titanium Studio??
Can I create a Web app for Android OS with HTML, CSS and Javascript from Titanium Studio?? I don't need a web developer, I need create a web app for android from Titanium Studio, It's possible??
Using iframe to display local html files without going full screen via webview on Android
Hi, seems like a simple problem but... When using a webview with Android 4 to load a local html file containing an iframe I'm getting different results depending on the source of the src url. Loading a local html file in the iframe takes over the whole...
Scraping HTML elements from dropdown menu on website to application in Titanium Sutdio
Hi guys, So I'm new to application development, but we need to develop a mobile application to finish our studies. Now what I want are the elements/choices of 2 dropdown menu's from a website, where the elements of the 2nd dropdown menu depend on your...
How to take information from WebSite to the tableView
Hi, I am new to Titanium and I have read and watch a lot of tutorials but I have one question! How can I get information from the Web site and sort it to the TableView or other object, like everything in the H1 tag on a page in one column and the other...