{ "id": "130213", "key": "TIMOB-16942", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2014-05-22T18:04:36.000+0000", "created": "2014-05-09T11:12:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "look1", "qe-3.3.0" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "37771", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "130748", "key": "TIMOB-17013", "fields": { "summary": "MobileWeb: FireEvent on webview is not working ", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:22:08.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Steps to reproduce:\r\n1. Copy paste the code in classic Project and run the app.\r\n2. Click on WebView.\r\n\r\nActual Result:\r\nGetting only One alert.\r\nalert 1: click event received\r\n\r\nExpected Result:\r\nTwo alerts must be fired.\r\n alert 1: click event received\r\n alert 2: WebView received appClicked event\r\n\r\n\r\nBut Fire Event is working properly on both iOS and Android platforms\r\n\r\napp.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'black'\r\n});\r\n\r\nvar webview = Ti.UI.createWebView({\r\n\turl : \"test.html\"\r\n});\r\n\r\nwebview.addEventListener(\"click\", function() {\r\n\talert(\"click event received\");\r\n\tTi.App.fireEvent(\"appClicked\");\r\n});\r\n\r\nwin.add(webview);\r\nwin.open(); \r\n{code}\r\n\r\ntest.html\r\n{code}\r\n\r\n\t\r\n\t\tTest for textfields\r\n\t\t\r\n\t\r\n\t\r\n\t\tTesting fire event\r\n\t\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "BlackBerry: FireEvent on webview is not working ", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appc-Studio:3.3.0.201405080918\r\nsdk:3.3.0.v20140508135704\r\nacs:1.0.14\r\nalloy:1.4.0-dev\r\nnpm:1.3.2\r\ntitanium:3.3.0-dev\r\ntitanium-code-processor:1.1.1\r\nxcode:5.1.1\r\nDevice: Blackberry Z10(v10.0.10.261),Iphone5s(v7.1.1),Nexus7(v4.4.2)", "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "306109", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "For the web view to be able to receive and send events, it first needs to load the page and then wait a bit for the injection of the internal Ti javascript. Replace the JS in the html file with this:\r\n{code}\r\n\r\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-22T18:04:36.000+0000", "updated": "2014-05-22T18:04:36.000+0000" }, { "id": "412853", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as BlackBerry is no longer supported by us.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:22:08.000+0000", "updated": "2017-03-16T20:22:08.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }