{ "id": "161040", "key": "TIMOB-23503", "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": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-06-14T19:18:02.000+0000", "created": "2016-06-13T07:14:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "52024", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "160885", "key": "TIMOB-23479", "fields": { "summary": "Windows: Local webview does not show any images, or opens other files.", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-14T16:56:14.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "[WebView local script|https://wiki.appcelerator.org/display/guides2/Communication+Between+WebViews+and+Titanium] does work for the first page, but it doesn't work on the next page where you follow its hyperlink. \r\n\r\n{code:javascript|title=Resources/app.js}\r\nvar win = Ti.UI.createWindow();\r\nvar view = Ti.UI.createView({backgroundColor:'blue'});\r\nvar webview = Ti.UI.createWebView({\r\n url: 'WebViewTestPage.htm',\r\n height: '80%',\r\n width: Ti.UI.FILL,\r\n bottom: 0\r\n});\r\nvar button = Ti.UI.createButton({\r\n title: 'fromTitanium',\r\n height: '10%',\r\n width: Ti.UI.FILL,\r\n top: 0, left: 0\r\n});\r\nbutton.addEventListener('click', function (e) {\r\n Ti.App.fireEvent('app:fromTitanium', { message: 'event fired from Titanium, handled in WebView' });\r\n});\r\nTi.App.addEventListener('app:fromWebView', function (e) {\r\n alert(e.message);\r\n});\r\n\r\nview.add(webview);\r\nview.add(button);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\n{code:html|title=Resources/WebViewTestPage.htm}\r\n\r\n\r\n \r\n\r\n\r\n

Follow this link and see if script works

\r\n \r\n\r\n\r\n{code}\r\n\r\n{code:html|title=Resources/NextPage.htm}\r\n\r\n\r\n \r\n\r\n\r\n

NextPage.htm

\r\n \r\n\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows: WebView local script doesn't work for hyperlink ", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 641, "state": "closed", "name": "2016 Sprint 12 SDK", "startDate": "2016-06-04T00:30:28.612Z", "endDate": "2016-06-18T00:30:00.000Z", "completeDate": "2016-06-20T04:25:16.065Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "388271", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/744", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-14T06:23:50.000+0000", "updated": "2016-06-14T06:23:50.000+0000" }, { "id": "398984", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-58\r\nAppc NPM: 4.2.8-7\r\nTi SDK: 6.0.0.v20161013072802\r\nAppc Studio: 4.8.0.201610060953\r\nLumia 550 10.0\r\n\r\nAlert dialog is shown as expected in both pages\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-10-14T16:56:09.000+0000", "updated": "2016-10-14T16:56:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }