Community Questions & Answers
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...
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...
Please help: what is a URL scheme and how can I fix my code for upload to App Store?
Hi All.When I validate my app for submition to the App Store I get this error: The following URL schemes found in your app are not in the correct format: [fb[object Object]]. When testing everything works fine. I am totally blank to what and how to fix...
createWindow url doesn't function well
In Titanium Studio, i create my project using Default Project and Titanium SDK is 3.2.0.v20130414162442 and Deployment Target is Blackberry. In my app.js ~~~ Titanium.UI.setBackgroundColor('#000'); var tabGroup = Titanium.UI.createTabGroup(); var win1 =...
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.
How to open a window through a tab
Hello everyone, I've created a tab, in wich I've added this code: ~~~ var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); ~~~ This is the code of win1: ~~~ var win1 = Titanium.UI.createWindow({ ...
Download images from URL to ApplicationDataDirectory
Hi people! I have a problem... I'm trying to download some images from an url and i wanna store them in the application data directory... I found a solution for IOS : ~~~ var imageDownloader =...
Post images on Google+ through url
Hi, I want to post images and videos on google+ through my application. Here is my url which I am using: ~~~ var webView = Ti.UI.createWebView({ url:...
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 :...
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...
Passing variable between windows on webview
Hi, I'm using a webview in which I insert a web. In this web, I pass variables on the url between windows (index.html?var=10). On iOS and Web Browser, I have no problem, but on Android it puts NOT FOUND when I do click on a url like...
iOS - Contact Profil Pictures
Hello there, iám searching on the web since this morning but i can´t find a documentation or something like that, where i can find a solution for my problem. I have an tableview with the names of contacts but i want the profil pictures on the left...
Android HTTPS connection to web-service with module
Hello, I'm using sdk 3.0.2 and an Android 4.0.4 device and have been trying to connect to a REST web-service. I been trying to do a Https connection and URL connection through my self made module but keep getting the following error: (The same code in the...
imageview can't load image from https url, WHY ?????????????
my code here ~~~ var leftimage = Ti.UI.createImageView({ top: 0, left: 0, width: 50, height: 50, borderRadius: 10, }); leftimage.image = http://mydomain.com/123.jpg ~~~ This work perfectly, but when I change http to https, I...
imageview with https URL not working
Hi, all I have a problem to let imageview use https url, but I got warning message like below and image not display in imageview ~~~ [WARN] : Unable to securely connect to MYDOMAIN.COM with the latest TLS. Trying again with TLS1.0. It is highly...
Webview remote url doesn't load (ios)
**Q) Why won't my webview load at all? See test app.js and error below, thanks.** In app.js: ~~~ var win = Ti.UI.createWindow({ title: 'test window' }); var webView = Ti.UI.createWebView({ url:...
open remote pdf file on webview in Android
How can we show the PDF file in web view in Android Device?
Fetch a specific array information in .JSON in Titanium Mobile SDK?
How to fetch the information of one array only instead of all from json url in Titanium Mobile SDK? Here is my code in app.js ~~~ var url = "http://dashberry.com/mspikes/json/mainmenu.json"; var table = Ti.UI.createTableView(); var tableData =...
Remote images not showing up
I have an example image http://50.56.32.41/profile/p.png that I am trying to display in an ImageView, and if I open up safari on the iOS simulator it comes up, but when I try it ` var profilePic =...
Need help opening nested windows in Android
[INFO] Android SDK 2.2, Titanium 3.0, Master/Detail project I've got my main screen all setup, and I open my first window just fine from the main, but opening windows from the previously opened window will NOT work. My main window: ~~~ function...
Having trouble opening nested windows
(I'm using Titanium 3.0, android 2.2 SDK, master/detail project) I've got my main screen (ApplicationWindow.js) opening new windows when a view is clicked using: ~~~ button1.addEventListener('click', function(e) { var Window =...
How to convert a remote url into Blob data?
Hi everyone I am trying to convert remote url to blob data to upload image to server. I have tried a technique which is : First add `url` to `imageView` and then convert `imageView` into blob data using `toBlob()` method. But this is also not helping me....
Webview click url
Hi there, i have a webview and i want to click links in the message, and want to open them in a modal window, but how can the script understand that the text have a link? This is for iOS. Thanks ~~~ var lbl = Titanium.UI.createWebView({ html :...
Play Video in Webview on Android
Hello, I have download file and saved file in externalStorageDirectory. Video does not play on webview. Video have sound only. What I need to do? index.html ~~~ <video id="video" autobuffer height="240"...
Mobi Site
Hi all, How to create mobile version compatible website from the existing website ? Pls help me out. Give me some suggestions.
REST api url calls Work in browsers (pc & mobile) but NOT in Mobile app - get 400 Bad Request
Hi Folks, I haven't beat my head against a wall like this in some time. I have a perplexing and maddening problem. I have googled my brains out for three (3) days. I am going to make this question as simple as possible. I have a RESTful service setup...
Custom URL Scheme - iPhone & Android
Hi, I am looking on how to implement the **Custom URL Scheme** feature (i.e launch the mobile app when clicking on a link in safari or e-mail) for both iPhone and Android. My goal is to send an e-mail with an HTML link ~~~ <a...
Launching Your Own Application via a Custom URL Scheme
Hi There, How can I work with Custom URL Handlers with Titanium? I've added the "URL Identifier" and "URL Schemes" on the info.plist file, see code below ~~~ ...
Alloy Beginner's Questions
I would like to ask a couple of questions on Alloy since I am a beginner. I tried [http://docs.appcelerator.com/titanium/latest/#!/api/Alloy](http://docs.appcelerator.com/titanium/latest/#!/api/Alloy) and...
Bind eventListener to url inside webview
Hi guys, got a bit of a complicated situation going on. Up until now I've been using createLabel to display text inside the app I'm building at the moment. However, some sentences however contain urls to websites. For instance; **Please go to...
syntax of new window js file when created by url of new js file
I need open new window form new js file ~~~ var eventWin = Ti.UI.createWindow({ url:'new_window.js', title:'Events', modal: true }); Ti.API.info('eventwin in app.js: ' + eventWin); eventWin.open(); ~~~ but i don't know the how syntax...
Url chaning other page
Hi folks I m using Ti 3.0 and developing for ios 6. My problem is when I click the view.it dont change Url other window.and how can reload the window .I write simple way ~~~ Ti.include('url.js'); Ti.include('parameter.js'); //Ti.include('gallery.js'); ...
remote data not being saved
I'm trying to retrieve data depending on some params, if its local or its an URL. EventList is supposed to be a module, required in app.js The `self = myData.events` is ok, if I output it is what it's supposed to be, but the `return self` returns an empty...
Android: is it possible to get the 'android:back' event in light weight windows ?
Hi All! I am have the following code, in app.js ~~~ btn_for_next.addEventListener('click', function(e) { Titanium.App.Properties.setString("eventType", e.index); var windowNext = Ti.UI.createWindow({ url :...
ImageView and the visible attribute
Hello everyone, I am have this code of creating an Image view + a button: ~~~ var brep = Titanium.UI.createImageView({ url: '/images/picture1.png', width:430, height:90, visible:false, }); var button =...
How to get the number of files in a remote directory (without server-side scripts)
Hi! I'm wondering if anyone knows whether it's possible to retrieve and store all the URLs of the files in a remote directory (i.e. not on device) in an array, or otherwise how to get the number of files in that directory. The thing is that I have a...
Ti.Platform.openURL mobileweb
hello when I use Ti.Platform.openURL in android or iOS simulator ..the link is opened successfuly.But in mobileweb - my web browser link is not open. What's the problem in web browser?
ImageView URLs and Space Characters
This is less a question than a bug report. When creating a new ImageView, using a remote URL for the image throws an error if a space character is part of the URL string. ~~~ [ERROR] invalid image type. expected TiBlob, String, TiFile, was: __NSCFString ...
Problem with a url
I have a problem with my app, i save a url from one image in a variable, when i need reload de image in the webview with this url, the app don't send me nothing, but others url's show me the image.... somebody help me
Capture url with html - javascript
Titanium Studio, build: 2.1.2.201208301612, i developing for both platform's (iOS , Android), and the most important, my code here i load the url var Imag_Edit = win2.path_image; and take for javascript in here var html = '<!doctype...
inside createWindow.url file, can't use add method to createWindow
This is quite odd problem. I tried to use [this code](http://stackoverflow.com/questions/12130598/titanium-android-ti-ui-currentwindow-is-not-working-for-tab-group) and modified it somewhat, I've got runtime error, and I don't understand what's going...
german "Umlaute" in image url
Hi, I have some images (filenames loaded with jason) I need to show in an article listing. Some imagefilesnames have German Umlaute (ä,ö,ü), with IOS they will be showed correctly but with Android I get an Error: ~~~ [14,23848] Max retries reached,...
Accessing Nested JSON Objects
I want to parse data from a webserver which has data stored in the following format: feed{ ...
Webview interaction
We are moving our iphone project into titanium for an app we are soon to publish. A problem has popped up with extracting data from the webview. The page showing is an external page from our website. For certain links that the user clicks we want the app...
Mobileweb App get info from URL parameter?
I have a mobile web app, displayed in an IFRAME. I need to pass some data from a URL parameter in the IFRAME's SRC attribute, as in `src="/myapps/index.html?foo=bar` I could also put the app on the page itself, if the iframe is an issue, but I am...
fire event on webview with remote url
Hello, i have a webview with a remote url. i want to open links in that file in safari - not in the webview. is there a way to do that? thanks and best regards, Roman
How to change window from one to another
Hello everybody, I created this code: ~~~ var mywin = Titanium.UI.createWindow({ title:"Test Project", backgroundColor:"#fff", exitOnClose:true }); var mybutton =...
Get all urls of videos from videogallery
Hey Folks, How to get the urls of all files in the phone videogallery/photogallery app... using ti 2.0.2 for sdk 4.0
http connection problem
hi, I am on working on a titanium app for android. from the app i am trying to connect to my localhost. But its showing an error like the connection is refused or something like that. Here I am providing my code. ~~~ var loginReq =...
How to pass multiple value on URL
Hi, How to pass multiple value from URL to store value in the server database. Following is the code where i'm passing single value from the URL... var url = 'http://ServerIP/Kisan1.php?name="' + tfname.value+ '"&update=true'; I need to...