{ "id": "115364", "key": "TIMOB-14111", "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": null, "resolutiondate": null, "created": "2013-06-03T13:36:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "webview" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:49.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Problem*\r\nI have a local HTML file that I would like to open in a webview in a window. The file contains HTML anchors and I would like the view to position itself to that anchor when it opens.\r\n\r\n*Note*\r\nIt works on Android. The file opens in the webview positioned at the myanchorpoint anchor.\r\n\r\n*app.js*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar webview = Titanium.UI.createWebView({\r\n\turl : 'mypage.html#myanchorpoint'\r\n});\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code}\r\n\r\n*mypage.html*\r\n{code:html}\r\n\r\n\t
\r\n\t\t