Titanium Appcelerator Quickie: Fire Events from WebView - Clearly Innovative | Web and Mobile DevelopmentClearly Innovative | Web and Mobile Development

This is a quick little post showing how to fire off events from an Appcelerator WebView back to you main application

Inside you html file loaded by the webview;  you must always pass back an object with the event, even if the object is empty

Inside you app.js…

The interesting part here that was difficult to dig up is the ability to pass data back through the firing of the event.

Titanium Documentation

fireEvent Documentation… dont bother

Ti.UI.WebView Documentation… decent