Community Questions & Answers

fire event won't work on ios

hello, i'm facing a problem using app level events on ios, when i fire an event passing through a complex object like a view from a module to another, on listener side the object result undefined, so for instance if a create a view and pass it to the fire...

webview fireEvent

hello, i've to bring up an issue mentioned here several times, but which is not answered yet. it seems that a custom event defined in a webview fire at least 2 times. that's nasty e.g. in case you create a window or view based on the event. is there a way...

can't get fireEvent data from web view

I know there's a billion posts about this but can't seem to get anywhere with my particular problem. Pretty straight forward...thx!! app.js ~~~ Ti.UI.setBackgroundColor('#000'); var win = Ti.UI.createWindow(); var web = Ti.UI.createWebView({ url :...

WebView fireEvent from remote web page?

I'm trying to establish communication between items in a WebView and my main code. I'm able to use Ti.App.fireEvent from html pages that are hosted on the phone (are part of the app), but when I do the same from a remote URL (an html page not hosted on the...

Ti.App.fireEvent / webView / api 1.6 issue

hello, i'm just testing older projects against api 1.6. it seems that custom events fired from a webview don't get through. this code [http://pastie.org/1645318](http://pastie.org/1645318) works as expected on 1.5.1 and before, but not on 1.6. any idea...

FireEvent - Cyclic Object - Bug

Does anyone experience the, same problem ? When i try to fire a custom event and the data contains an cyclic Object the Application just crashes ? app.js testcase: ~~~ var win = Ti.UI.createWindow({ title:"Cyclic Event" }) var button =...

Calling Ti.App.fireEvent from External JS file

Hi In WebView I call Ti.App.fireEvent in an external JS file in a function that itself is a function method. It is not being called if **Ti.App.fireEvent** written in external JS file. It is not being called on onclick either which is defined on a SPAN...

App level event listener with arguments

How would I pass arguments to the sayHello function below? ~~~ function SayHello(data) { alert(data); } //setup event listener Ti.App.addEventListener ('test', sayHello); //fire the event, send data Ti.App.fireEvent('test',data); ~~~

webView usage guideline

hello, i'm trying to figure out possible use of a (android) webview. i've read through the various Q&A, but it seems there's some confusion, therefore i ask a dedicated more general question. particularly i'm interested in creating a webview from a...

Firing evnt from module

Hi, in a module I fire an event an send a dictionary: ~~~ tableview.addEventListener('click', function() { control.getDRouten(function(_e) { var rows = require('/modules/getdrouten').create(_e); Ti.App.fireEvent('set:submenue', { "rows" :...

Forced appearing of keyboard

Hi, I want to show keyboard after butoon clicking: ~~~ var button = Ti.UI.createButton({ title : 'Send us a photo!', }); textfield.addEventListener('blur', function() { toolbar.hide(); // this works fine }); button.addEventListener('click',...

WebView fireEvent message size limit

I have found that it is not possible to send data more than around 4-5Kb via Ti.App.fireEvent to a webview - the system just seems to hang if you try to send more. Question - how do I send larger volumes of data from Titanium to a webview.

Can module fire an event?

Hi, this code: ~~~ var myobject = require('mymodul').create(parameters); myobject.addEventListener('myevent',dosomething); ~~~ How can I fire an event from inside? ~~~ exports.create = function() { return myview; } ~~~

Showing 1-50 of 125 1 2 3