Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2958] Android evalJs while input text is focused

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-06-29T14:28:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, evalJs, thread, webview
Reporterprocess
AssigneeShak Hossain
Created2012-06-14T06:01:29.000+0000
Updated2016-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

FileDateSize
androidtest.zip2012-06-14T06:05:27.000+0000752558

Comments

  1. 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 ?????
  2. 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
  3. process 2012-06-14

    [http://code.google.com/p/android/issues/detail?id=13466 | http://code.google.com/p/android/issues/detail?id=13466]
  4. Varun Joshi 2012-06-26

    Since this issue is native to Android too, it cannot be fixed in Titanium unless its fixed natively.
  5. Shak Hossain 2013-12-30

    Closing this since the issue is not reproducible. Please try our latest TISDK.

JSON Source