i want to call two url in one webview one after the another but how i know i can load one url in webview but to call two url please help me one this how to timeinterval on both the url
this is mu single url if but i have to give here two url the how to give and call them
- (void)viewDidLoad {
[super viewDidLoad];
CheapFlightsAppDelegate* app=(CheapFlightsAppDelegate*)[[UIApplication sharedApplication]delegate];
self.navigationController.navigationBarHidden = true;
NSLog(@"Book: %@",app.selectedOutgoingFlight.FlightKey);
NSLog(@"Book: %@",app.selectedInComingFlight.FlightKey);
NSString *hel = @"http://www.bookryanair.com/SkySales/FRSelect.aspx?AvailabilityInputFRSelectView %24ButtonSubmit=Select%20and%20Continue&AvailabilityInputFRSelectView%24m arket1=";
NSString *hel1 =[NSString stringWithFormat:@"%@&",app.selectedOutgoingFlight.FlightKey];
NSString *hel2 = @"AvailabilityInputFRSelectView%24market2=";
NSString *hel3 = [NSString stringWithFormat:@"%@&",app.selectedInComingFlight.FlightKey];
NSString *hel4 = @"__EVENTARGUMENT=&__EVENTTARGET=";
NSString *urlAddress = [NSString stringWithFormat:@"%@%@%@%@%@",hel,hel1,hel2,hel3,hel4];
[spinner startAnimating];
spinner.hidden = NO;
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
NSLog(@"Book: %@",urlAddress);
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
[webView loadRequest:requestObj];
webView.delegate = self;
}
Set new
urlofNSURLRequestand call[webView loadRequest:requestObj];after any time interval you want again.NSTimer will help you to call method after some interval.
UPDATED:
Implement in your “ methods to detect when webview finished loading first url: