View Full Version : Remove unused data from IBAction

Feb 28, 2009, 12:00 PM
How can i just make the goClick show only the results and not change the baseurl of all the links in the results.

I only need to execute this part of the code.

[SearchView getsearch: textField.text];

Every time i play with it, it debugs out. Much help is appriciated.

- (IBAction)goClick {
NSString* searchXml = [SearchView getsearch: textField.text];
NSData* htmlData = [searchXml dataUsingEncoding:NSUTF8StringEncoding];
[webView loadData:htmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:@"http://www.mywebsite.com/about.html"]];

Mar 1, 2009, 11:12 AM
I set baseURL to nil now all i get is a blank page.

How can i set it where it doesnt remove the actual URL and replace it with something else.