{ "id": "93215", "key": "AC-2958", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-06-29T14:28:25.000+0000", "created": "2012-06-14T06:01:29.000+0000", "labels": [ "android", "evalJs", "thread", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "App.js :\r\n\r\n\r\nvar win = Titanium.UI.createWindow();\r\nvar wv = Ti.UI.createWebView({\r\n\turl : '/index.html'\r\n});\r\nwin.add(wv);\r\n\r\nsetInterval(function() {\r\n\twv.evalJS(\"test('a test message')\");\r\n}, 6000);\r\n\r\n/* solution */\r\n/*\r\n try{\r\n wv.evalJS(\"test('a test message')\");\r\n }catch(e){\r\n Ti.API.info(e);\r\n }\r\n */\r\nwin.open(); \r\n\r\n\r\nindex.html :\r\n\r\n\r\n \r\n test document\r\n \r\n \r\n \r\n \t\r\n \r\n\r\n\r\n* Ti.API.info(e) also don't work inside the catch", "attachment": [ { "id": "28352", "filename": "androidtest.zip", "author": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "created": "2012-06-14T06:05:27.000+0000", "size": 752558, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android evalJs while input text is focused", "creator": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "environment": "Android 3.1, Android 2.3, Titanium 1.8.2 and 2.0.2.GA", "comment": { "comments": [ { "id": "198445", "author": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "body": "the \"solution\" to do this ...\r\n\r\nsetInterval(function() {\r\n\ttry {\r\n\t\twv.evalJS(\"test('a test message')\");\r\n\t} catch(e) {\r\n\t\tTi.API.info(e);\r\n\t}\r\n}, 3000);\r\n\r\n\r\n...blurs the input on each call. What should we do ?????", "updateAuthor": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "created": "2012-06-14T06:12:47.000+0000", "updated": "2012-06-14T06:12:47.000+0000" }, { "id": "198454", "author": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "body": "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\r\n\r\n\r\n", "updateAuthor": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "created": "2012-06-14T06:48:40.000+0000", "updated": "2012-06-14T06:53:14.000+0000" }, { "id": "198468", "author": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "body": "[http://code.google.com/p/android/issues/detail?id=13466 | http://code.google.com/p/android/issues/detail?id=13466]", "updateAuthor": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "created": "2012-06-14T07:55:49.000+0000", "updated": "2012-06-14T07:55:49.000+0000" }, { "id": "200348", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Since this issue is native to Android too, it cannot be fixed in Titanium unless its fixed natively.", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-26T11:28:21.000+0000", "updated": "2012-06-26T11:28:21.000+0000" }, { "id": "286284", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this since the issue is not reproducible. Please try our latest TISDK.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-30T19:16:41.000+0000", "updated": "2013-12-30T19:16:41.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }