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 8423637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:46:38+00:00 2026-06-10T03:46:38+00:00

With [NSURLConnection sendSynchronousRequest] method I get, with a GET request, a list of records

  • 0

With [NSURLConnection sendSynchronousRequest] method I get, with a GET request, a list of records from html page.

The records are paged at intervals of 20. To get the pages following the first, a function is called

javascript: GoToPagina (n)

where n is the number of page.

How can I call the function programmatically?

  • 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-06-10T03:46:39+00:00Added an answer on June 10, 2026 at 3:46 am

    You need a UIWebView to do what you are asking about, as that is the only thing that can execute javascript on iOS. You can load it up with the URL in question, and when it’s done loading:

    [myWebView stringByEvaluatingJavascriptFromString:
      [NSString stringWithFormat:@"GoToPagina(%d), pageNum]];
    

    However, in order to do it with NSURLConnection directly, you can’t use JS. Instead, forgure out what URL the GoToPagina(n) function gets its data from and call that directly with another NSURLConnection.

    If all you want is the data and you don’t want to show any webview at all, then this is more likely what you want to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use sendSynchronousRequest:returningResponse:error method of NSURLConnection class to get NSData from network. http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html NSData
Im using the standard: [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error]; method, but while the request is
i wrote the following code : NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil]; NSString
I have the following code. NSData *pageData = [NSURLConnection sendSynchronousRequest:request returningResponse:NULL error:NULL]; NSString *webpage
I am calling the following Class method from within my ViewController init method: [NSURLConnection
Suppose I have the following code: ... var data = [NSURLConnection sendSynchronousRequest:request returningResponse:nil]; NSLog.trace(@getdData:
I have the following method to get the content of a file called parsertest.html
I am downloading images using the NSURLConnection sendSynchronousRequest method and that works fine. However,
My Rootviewcontroller uses NSURLConnection to get data from a server, and then, based on
While downloading a file from Amazon S3 in iOS. Intermittently NSURLConnectionDownloadDelegate's method didFailWithError: get

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.