[AC-2911] webview.reload() only shows the word "success" instead of html content
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-07-23T08:04:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 1.7.0, bug, ios, ipad, reload, url, webview |
Reporter | Javier Rayon |
Assignee | Tony Guntharp |
Created | 2011-06-15T09:43:25.000+0000 |
Updated | 2016-03-08T07:47:53.000+0000 |
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
var URL = "http://www.google.com";
var webView = Titanium.UI.createWebView({
top:0,
url:URL,
backgroundImage:'imgs/background.png',
contentWidth: 'auto',
contentHeight: 'auto',
height:'100%',
width:'100%',
backgroundColor: 'transparent',
zIndex:10
});
[...]
webView.reload();
EDIT: now I discover that sometimes nothing is shown after reload, nor "success", nor anything. The webView does not show anything.
Titanium Mobile SDK 1.7.0
xCode 3.2.5
iPad 1, iPad 2 and emulator
(Works fine on sdk 1.6.3 and prior, detected on 1.7.0 RC1.)
ok, this is my workaround to solve this, but the problem is still there (a least, for me). I catch the new url on the 'load' event of the webView, and when the user clicks the refresh button, I assign to webView.url:
Hope this helps.
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. Also, 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? Many thanks
No response from user.
Closing issue. If any new information comes to light that justifies it, then please reopen.