{ "id": "159598", "key": "TIMOB-23219", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-04-16T15:09:10.000+0000", "created": "2016-04-15T13:44:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "windows_phone" ], "versions": [ { "id": "17993", "description": "Release 5.2.2", "name": "Release 5.2.2", "archived": false, "released": true, "releaseDate": "2016-04-05" } ], "issuelinks": [ { "id": "51358", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "153726", "key": "TIMOB-20143", "fields": { "summary": "Windows: Titanium.UI.WebView don't load local html page", "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": "Critical", "id": "1" }, "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": "2017-03-21T23:14:12.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": "When trying to set html or a local url to a webview in Windows Phone, it fails.\r\n\r\nExample code:\r\n\r\n{code:js}\r\n$.webview.html = \"Test\"\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Parity: Cannot set HTML property on a webview", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Windows Phone", "comment": { "comments": [ { "id": "382828", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This might help testing the issue.\r\n\r\n*app.js*\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow();\r\nvar webview = Ti.UI.createWebView({\r\n\turl: 'local.html'\r\n});\r\nwin.add(webview);\r\nwin.open();\r\n{code}\r\n\r\n*local.html*\r\n{code}\r\n\r\n\r\n\t
\r\n\t\t\r\n\t\t\tHere some text that will be styled by the included local style sheet. If you click it,\r\n\t\t\tthe included local JS file will cause an alert to pop up.\r\n\t\t
\r\n\t\r\n\r\n{code}\r\n\r\n*local.css*\r\n{code}\r\n\r\np {\r\n\tcolor: #880000;\r\n\tfont-weight: bold;\r\n\tfont-size: 24px;\r\n}\r\n{code}\r\n\r\n*local.js*\r\n{code}\r\n\r\nfunction addParagraphAlert() {\r\n\tdocument.getElementById('localtest').addEventListener('click', function(e) {\r\n\t\talert('you clicked the paragraph');\r\n\t});\r\n}\r\n{code}\r\n\r\nRegards,\r\nSharif", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-04-15T14:19:34.000+0000", "updated": "2016-04-15T14:19:34.000+0000" }, { "id": "382832", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "hi,\r\n\r\nthanks. But setting the local URL doesn't work either. (as per title of this ticket). It crashes too. (unknown error it says)", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-15T14:37:29.000+0000", "updated": "2016-04-15T14:37:29.000+0000" }, { "id": "382835", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "We've addressed the issue of not loading a local URL/HTML file in the related ticket I've linked: TIMOB-20143\r\n\r\nI'm not sure if we also addressed setting HTML itself on the web view. Perhaps [~kota] knows..", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-04-15T15:11:57.000+0000", "updated": "2016-04-15T15:11:57.000+0000" }, { "id": "382836", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~topener] You should be able to workaround this in the meantime (hopefully), from Kota's comments on the related ticket:\r\n{code:javascript}\r\nvar htmlPage = \"/local.html\";\r\nif(OS_WINDOWS){\r\n htmlPage = \"ms-appx-web://\" + htmlPage;\r\n}\r\n$.webview.url = htmlPage;\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-04-15T15:14:35.000+0000", "updated": "2016-04-15T15:14:35.000+0000" }, { "id": "382879", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue should be fixed by TIMOB-20143, which is scheduled to release in 5.3.0. \r\nWorks for me on latest 5.3.0 nightly. {{appc ti sdk install --branch 5_3_X 5.3.0.v20160415121959}} \r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-16T08:54:34.000+0000", "updated": "2016-04-16T08:54:34.000+0000" }, { "id": "382883", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-20143", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-16T15:09:10.000+0000", "updated": "2016-04-16T15:09:10.000+0000" }, { "id": "414668", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the above comments and links.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T23:14:12.000+0000", "updated": "2017-03-21T23:14:12.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }