[iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Tharindu Madushanka
Hi, I would like to make UIWebView content empty while other page is loading. I tried loading [webview loadRequest:nil]; And also [webview loadHtmlString:@html/html baseUrl:nil]; Just before my [webview loadRequest:request]; method call. Still I am having previous html page shown a very little

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Matt Neuburg
On Fri, 19 Nov 2010 14:49:11 +0530, Tharindu Madushanka tharindu...@gmail.com said: Hi, I would like to make UIWebView content empty while other page is loading. I tried loading [webview loadRequest:nil]; And also [webview loadHtmlString:@html/html baseUrl:nil]; Just before my [webview

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Bruce Turner
On Nov 19, 2010, at 3:02 PM, cocoa-dev-requ...@lists.apple.com wrote: On Fri, 19 Nov 2010 14:49:11 +0530, Tharindu Madushanka tharindu...@gmail.com said: Hi, I would like to make UIWebView content empty while other page is loading. I tried loading [webview loadRequest:nil]; And also

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Tharindu Madushanka
Hi, [webView stringByEvaluatingJavaScriptFromString:@document.open();document.close()]; Solution Works as Bruce said :) Thanks a lot for all. Tharindu. On Sat, Nov 20, 2010 at 6:51 AM, Bruce Turner bmtur...@optonline.netwrote: On Nov 19, 2010, at 3:02 PM,

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Jack Carbaugh
Could you not also load a local resource/file from bundle that is empty or as a placeholder ? On Nov 19, 2010, at 9:52 PM, Tharindu Madushanka wrote: Hi, [webView stringByEvaluatingJavaScriptFromString:@document.open();document.close()]; Solution Works as Bruce said :) Thanks a lot for