Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2911] webview.reload() only shows the word "success" instead of html content

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-07-23T08:04:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels1.7.0, bug, ios, ipad, reload, url, webview
ReporterJavier Rayon
AssigneeTony Guntharp
Created2011-06-15T09:43:25.000+0000
Updated2016-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.)

Comments

  1. Javier Rayon 2011-06-15

    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:
       webView.addEventListener('load', function(evt){
          webView.newUrl = evt.url;
       });
       
       function refreshWebView(){
          webView.url = webView.newUrl;
       }
       
    Hope this helps.
  2. Paul Dowsett 2011-06-20

    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
  3. Paul Dowsett 2011-07-23

    No response from user.
  4. Paul Dowsett 2011-08-30

    Closing issue. If any new information comes to light that justifies it, then please reopen.

JSON Source