{ "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