{ "id": "124869", "key": "TIMOB-16220", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-10-18T20:02:26.000+0000", "created": "2014-01-16T14:10:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "WebView", "evalJs", "eventlistener", "load" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-29T01:02:23.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": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When you add a Titanium.UI.WebView with the property _touchEnabled_ set to _false_, the _load_ event will not get triggered anymore.\r\n\r\nAs the documentation for WebViews ^*^ describes for using the _evalJS()_ method, I'm calling the _evalJS_ method from the _load_ event.\r\n\r\n^*^ http://docs.appcelerator.com/titanium/latest/#!/guide/Communication_Between_WebViews_and_Titanium\r\n\r\nTested on iOS only.\r\n\r\nSample: someWebView1 load event does not get triggered while someWebView2 load event does get triggered.\r\n\r\n{code}\r\nvar someWebView1 = Ti.UI.createWebView({\r\n top: 0,\r\n width: 500,\r\n height: 500,\r\n backgroundColor: '#fafafa',\r\n url: 'http://www.google.com',\r\n touchEnabled: false\r\n});\r\nsomeWebView1.addEventListener('load', function(e) {\r\n alert('loaded someWebView1');\r\n});\r\n\r\nvar someWebView2 = Ti.UI.createWebView({\r\n top: 0,\r\n width: 500,\r\n height: 500,\r\n backgroundColor: '#fafafa',\r\n url: 'http://www.google.com'\r\n});\r\nsomeWebView2.addEventListener('load', function(e) {\r\n alert('someWebView2');\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.WebView doesn't trigger 'load' event when having 'touchEnabled' set to false", "creator": { "name": "martin@code.nl", "key": "martin@code.nl", "displayName": "Martin van Dam", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "martin@code.nl", "key": "martin@code.nl", "displayName": "Martin van Dam", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mac OS X 10.9.1\r\nTitanium Studio, build: 3.2.0.201312191547\r\nTitanium SDK: 3.2.0.GA", "comment": { "comments": [ { "id": "288582", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with the provided test case on iOS platform (but not on Android) when touchEnabled property is set to true. It works fine when touchEnabled is set to true or not specified at all. It works under all scenarios on Android.\r\n\r\nNote that this ticket is not a duplicate of TIMOB-16063 as that ticket is Android specific and this ticket is iOS specific.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-17T06:35:23.000+0000", "updated": "2014-01-17T06:36:13.000+0000" }, { "id": "324654", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduce 3.2.0 and 3.4.0 \r\nAppcelerator Studio, build: 3.3.0.201407111535 \r\nTiSDK 3.4.0 \r\niOS SDK: 7.1 \r\nTitanium Command-Line Interface, CLI version 3.3.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T05:55:33.000+0000", "updated": "2014-09-19T05:55:33.000+0000" }, { "id": "399287", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Cannot reproduce in Titanium 5.5.1.GA and iOS 10.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-18T20:02:26.000+0000", "updated": "2016-10-18T20:02:26.000+0000" }, { "id": "416107", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T01:02:23.000+0000", "updated": "2017-03-29T01:02:23.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }