evalJS not working in Android
I am creating a webView which has a form in it. I am trying to retrieve some data from within the form. I try it by using evalJS but it doesn't seem to work.
I also added some code such as
myWebView.addEventListener('load',function(e)
{
Titanium.API.info("HELLO WORLD");
}
and nothing is displayed.
If anyone has gotten this to work please let me know.
1 Answer
-
here is an example using evalJS to get all the cookies from a webView, I just tested it on Android so I am certain it works.
http://blog.clearlyinnovative.com/post/1596075627/titanium-appcelerator-quickie-evaljs-in-webview
I don't really understand the code with the eventListener?
here are examples of firing events in webView and receiving event in application