{ "id": "70629", "key": "TIMOB-5642", "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": "12081", "description": "", "name": "Sprint 2011-41", "archived": true, "released": true, "releaseDate": "2011-10-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-07T23:18:21.000+0000", "created": "2011-06-07T03:29:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mnegadaylov", "key": "mnegadaylov", "displayName": "Maxim Negadaylov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-04T00:10:13.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Method stopLoading closes the loaded pages of the webView instead of stopping loading an opening in the current moment page. If there is no loaded pages in the webView the stopLoading method closes the working window.\r\n{code:JavaScript}\r\nvar win = Ti.UI.currentWindow;\r\n\r\nvar tf = Ti.UI.createTextField({\r\n\tleft: 10,\r\n\ttop: 5,\r\n\twidth: 320,\r\n\theight: 40\r\n});\r\n\r\nvar webView = Ti.UI.createWebView({\r\n\ttop: 50,\r\n\tleft: 10,\r\n\twidth: 250,\r\n\theight: 300,\r\n//\turl: 'google.com/404',\r\n\tbackgroundColor: 'red',\r\n\tloading: false,\r\n\ttouchEnabled: false,\r\n\t\r\n});\r\n\r\nvar but = Ti.UI.createButton({\r\n\tleft: 400,\r\n\ttop: 10,\r\n\ttitle: 'stop loading',\r\n\twidth: 200,\r\n\theight: 50\r\n})\r\nwin.add(but);\r\nwin.add(tf);\r\nwin.add(webView);\r\n\r\nbut.addEventListener('click',function(){\r\n\twebView.stopLoading();\r\n});\r\n\r\ntf.addEventListener('return',function(){\r\n\twebView.url = tf.value;\r\n\r\n\t});\r\n\r\nwebView.addEventListener('beforeload', function(){\r\n\talert('Page loading begins');\r\n});\r\n\r\nwebView.addEventListener('load',function(){\r\n\talert('Page loaded');\r\n});\r\n\r\nwebView.addEventListener('error',function(){\r\n\talert('page cannot be load');\r\n});\r\n\r\nwin.addEventListener('click', function(){\r\n//\twebView.stopLoading();\r\n\tTi.UI.backgroundColor = '#080';\r\n});\r\n{code} ", "attachment": [], "flagged": false, "summary": "MobileWeb: stopLoading method in webView works incorrect", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "comment": { "comments": [ { "id": "409206", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to MobileWeb no longer being supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-04T00:10:13.000+0000", "updated": "2017-03-04T00:10:13.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }