I had previously tried adding the web-view with the request and it had still shown me logged out. Luckily, I was able to implement a search function using URL manipulation. Do you know any ways that I could pull data from a webpage? For example, pull some data from this webpage (
Job Search for cook - Looking for cook Jobs - cook Jobs) and display the headers such as COOK and CAMP COOK. For example, add the links to an array and then save the paths of the links so someone could just tap on it and it would take them to that page in a webview. I am about to conduct an intensive series of google searches on this but I just thought I should ask ahead.
EDIT: Hypothetically, this is the code that displays the data. The bolded parts are what I would like to pull:
Code:
<div id="search_title"><a href="/job.php?id=12008" target="_top">CAMP COOK</a></div>
<div id="search_company"><a href="/company/2011" title="Pinnacle Profile and Jobs">Pinnacle</a> -
Winnipeg, Manitoba,
<a href="/country.php?id=CA">Canada</a> </div>
<div id="search_desc">Cravings restaurant is looking for both a prep cook as well as a line cook. Available during the week, evenings and weekends. We are located in Stonewall, Manitoba a 15-20 min drive, North of Winnipeg. Experience is required as we are a new restauran...</div>
Hypothetically, I would arrange it inside of a table view. I would have a title, then a description, then the url when the user taps. I was thinking something like this:
Code:
webdisplay *searchResults = [[webdisplay alloc] initWithNibName:@"webdisplay" bundle:nil];
[self.navigationController pushViewController:searchResults animated:YES];
[searchResults release];
//This would be to swap the views when tapping in the table view, then in the next view's viewDidLoad:
-(void)viewDidLoad {
pulledURL = [NSString stringWithFormat:@"/job.php?id=1200"]; //I would import the bolded URL piece from above
regularURL = [NSString stringWithFormat:@"http://mployd.com"];
NSString *websiteLink = [NSString stringWithFormat:@"%@%@"],regularURL,pulledURL];
[website loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:websiteLink]]];
website.scalesPageToFit = YES;
[website release];
}