Titanium JIRA Archive
Appcelerator Community (AC)
[AC-2958] Android evalJs while input text is focused
GitHub Issue
n/a
Type
Bug
Priority
n/a
Status
Closed
Resolution
Invalid
Resolution Date
2012-06-29T14:28:25.000+0000
Affected Version/s
n/a
Fix Version/s
n/a
Components
n/a
Labels
android, evalJs, thread, webview
Reporter
process
Assignee
Shak Hossain
Created
2012-06-14T06:01:29.000+0000
Updated
2016-03-08T07:47:57.000+0000
Description
App.js : var win = Titanium.UI.createWindow(); var wv = Ti.UI.createWebView({ url : '/index.html' }); win.add(wv); setInterval(function() { wv.evalJS("test('a test message')"); }, 6000); /* solution */ /* try{ wv.evalJS("test('a test message')"); }catch(e){ Ti.API.info(e); } */ win.open(); index.html :
test document
* Ti.API.info(e) also don't work inside the catch
Attachments
File
Date
Size
androidtest.zip
2012-06-14T06:05:27.000+0000
752558
Comments
process 2012-06-14
the "solution" to do this ... setInterval(function() { try { wv.evalJS("test('a test message')"); } catch(e) { Ti.API.info(e); } }, 3000); ...blurs the input on each call. What should we do ?????
process 2012-06-14
maybe the loadURL in [TiWebViewBinding.java](
https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiWebViewBinding.java)
causes the virtual keyboard closing
process 2012-06-14
[
http://code.google.com/p/android/issues/detail?id=13466
|
http://code.google.com/p/android/issues/detail?id=13466
]
Varun Joshi 2012-06-26
Since this issue is native to Android too, it cannot be fixed in Titanium unless its fixed natively.
Shak Hossain 2013-12-30
Closing this since the issue is not reproducible. Please try our latest TISDK.
JSON Source
the "solution" to do this ... setInterval(function() { try { wv.evalJS("test('a test message')"); } catch(e) { Ti.API.info(e); } }, 3000); ...blurs the input on each call. What should we do ?????
maybe the loadURL in [TiWebViewBinding.java](https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiWebViewBinding.java) causes the virtual keyboard closing
[http://code.google.com/p/android/issues/detail?id=13466 | http://code.google.com/p/android/issues/detail?id=13466]
Since this issue is native to Android too, it cannot be fixed in Titanium unless its fixed natively.
Closing this since the issue is not reproducible. Please try our latest TISDK.