Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

duny

macrumors newbie
Original poster
Sep 21, 2008
26
0
H-Town
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.

Code:
[SearchView getsearch: textField.text];
Every time i play with it, it debugs out. Much help is appriciated.
Code:
- (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"]];  	 
}
 

duny

macrumors newbie
Original poster
Sep 21, 2008
26
0
H-Town
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.

AnyOne
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.