Usually, when I want to load an HTML string into a webview using javascript, I use something like this...
NSString *htmlString = @"HTML String";
[webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('elementid').innerHTML = \"%@\";", htmlString]];
While this appears to work well for small strings, it has no effect when the string it relatively large. Apparently, there is a length limit.
So, my question here is, if anyone knows of a way to load a large string into a UIWebView without having to reload the webview?
UPDATE: To be a little clear, in my case here, the webview is already loaded, I just want to replace it's content without having to reload it, mainly because reloading the webview is not fast enough for my use.