{ "id": "76420", "key": "AC-2911", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-07-23T08:04:17.000+0000", "created": "2011-06-15T09:43:25.000+0000", "labels": [ "1.7.0", "bug", "ios", "ipad", "reload", "url", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:53.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "As the summary says, webview.reload() only shows the word \"success\" instead of html content in a webView. It does not occurs with all URLs, but you can try, i.e, www.google.com\r\n\r\n{code:title=webView.reload()|borderStyle=solid}\r\n\r\nvar URL = \"http://www.google.com\";\r\nvar webView = Titanium.UI.createWebView({\r\n\ttop:0,\r\n\turl:URL,\r\n\tbackgroundImage:'imgs/background.png',\r\n\tcontentWidth: 'auto',\r\n\tcontentHeight: 'auto',\r\n\theight:'100%',\r\n\twidth:'100%',\r\n\tbackgroundColor: 'transparent',\r\n\tzIndex:10\r\n});\r\n\r\n[...]\r\n\r\nwebView.reload();\r\n\r\n{code}\r\n\r\nEDIT: now I discover that sometimes nothing is shown after reload, nor \"success\", nor anything. The webView does not show anything.\r\n\r\nTitanium Mobile SDK 1.7.0\r\nxCode 3.2.5\r\niPad 1, iPad 2 and emulator\r\n\r\n(Works fine on sdk 1.6.3 and prior, detected on 1.7.0 RC1.)", "attachment": [], "flagged": false, "summary": "webview.reload() only shows the word \"success\" instead of html content", "creator": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Mobile SDK 1.7.0\r\nxCode 3.2.5\r\niPad 1, iPad 2 and emulator\r\n\r\n(Works fine on sdk 1.6.3 and prior, detected on 1.7.0 RC1.)", "comment": { "comments": [ { "id": "156820", "author": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ok, this is my workaround to solve this, but the problem is still there (a least, for me). \r\n\r\nI catch the new url on the 'load' event of the webView, and when the user clicks the refresh button, I assign to webView.url:\r\n\r\n{code}\r\nwebView.addEventListener('load', function(evt){\r\n webView.newUrl = evt.url;\r\n});\r\n\r\nfunction refreshWebView(){\r\n webView.url = webView.newUrl;\r\n}\r\n{code}\r\n\r\n\r\nHope this helps.\r\n\r\n", "updateAuthor": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-15T12:34:59.000+0000", "updated": "2011-06-15T12:34:59.000+0000" }, { "id": "157225", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "In order for us to progress this issue, please would you edit your ticket and replace your code with a [Use-case|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases]. To summarize, this is the simplest code that will demonstrate the issue, and will run without any modification.\r\n\r\nAlso, would you test with the latest [continuous build|http://wiki.appcelerator.org/display/guides/Continuous+Builds], and include the build date and hash that has been tested?\r\n\r\nMany thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-20T16:02:27.000+0000", "updated": "2011-06-20T16:02:27.000+0000" }, { "id": "160404", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "No response from user.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-23T08:04:17.000+0000", "updated": "2011-07-23T08:04:17.000+0000" }, { "id": "164463", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing issue. If any new information comes to light that justifies it, then please reopen.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-30T01:27:14.000+0000", "updated": "2011-08-30T01:27:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }