Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6639529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:33:52+00:00 2026-05-25T23:33:52+00:00

i want to call two url in one webview one after the another but

  • 0

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;

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:33:52+00:00Added an answer on May 25, 2026 at 11:33 pm

    Set new url of NSURLRequest and call [webView loadRequest:requestObj]; after any time interval you want again.

    NSTimer will help you to call method after some interval.

    // after loading first url:
    NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:60 target:self selector:@selector(loadNewUrl:) userInfo:nil repeats:NO];
    
    //somewhere in delegate define selector
    - (IBAction)loadNewUrl:(NSTimer *)timer
    {
         NSURL *url = [NSURL URLWithString:@"http://www.apple.com/stevejobs"];
    
         //URL Requst Object
         NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
    
         //Load the request in the UIWebView.
         [webView loadRequest:requestObj];
    }
    

    UPDATED:
    Implement in your “ methods to detect when webview finished loading first url:

    - (void)webViewDidFinishLoad:(UIWebView *)webView;
    - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example I have this ajax function but I can call only one json
I have two partial view and I want to call one of them in
I have two UILabels. that I want to overlap one atop the other. Call
I call this function from another page Redirect($loc); and I want it to redirect
How can I reverse a url but with a different template name? I specifically
In my Backbone View, I have two methods, one does a simple AJAX call,
I want to call a function from a controller, my_controller, passing in two arguments
I want to call a web service of which URL is available to me.
I have the following two url cases … http://url.com/one http://url.com/category/some If those urls are
I want to call a webservice using google closures, via jsonp since i am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.