Titanium Appcelerator Quickie: evalJs in WebView - Clearly Innovative | Web and Mobile DevelopmentClearly Innovative | Web and Mobile Development

I was have a couple of problems with the webView, first trying to get the cookies out and then second trying to get the evalJs to work properly.

My first mistake was not putting the call to the javascript inside a “load” event which would ensure the page was ready when I made the call.

After I addressed that problem the rest just fell into place.

This code was tested on Android and iPhone