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

  • Home
  • SEARCH
  • 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 6755915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:27:36+00:00 2026-05-26T13:27:36+00:00

i am making an iphone app that get data from web ,i use HPPLE

  • 0

i am making an iphone app that get data from web ,i use HPPLE to parse the html ,all works fine but in same cases i have problem to access elements created dynamically by JavaScript (document.write) in html web page .this is my html web source page source

<table dir = "rtl .......">
<tbody>
<script src = "get.aspx?type=js&file=ajax&rev=3"......>
<script language = "JavaScript" src = "get.aspx?type=js&file=mc&rev=6"></script>
<script>..</script>
<tr>..</tr>
<tr>..</tr>
<tr>..</tr>
<tr>..</tr>
<tr>..</tr>
<tr>..</tr>
<tr>..</tr>
<script>..</script>
<tr>..</tr>
<tr>..</tr>
<tr>..</tr>

i can see all elements labelled < tr> with safari Browser’s Developer Tools ,but when i try to download the html code the source that I get contains no html tags i want. sory of my bad english.and i hope some one help me.

  • 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-26T13:27:37+00:00Added an answer on May 26, 2026 at 1:27 pm

    The simplest solution to get JavaScript support is use a UIWebView. It doesn’t need to be added to the view hierarchy.

    UIWebView *webView = [[UIWebView alloc] init];
    NSString *url = @"http://www.google.com";
    webView.delegate = self;
    frames = 0; // NSUInteger instance variable to track frame loads
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];    
    

    UIWebViewDelegate Methods

    - (void)webViewDidStartLoad:(UIWebView *)webView {
        frames++;
    }
    
    - (void)webViewDidFinishLoad:(UIWebView *)webView {
        frames--;
        if (frames > 0) return;
    
        NSString *document = [webView stringByEvaluatingJavaScriptFromString:@"document.body.innerHTML"];
    
        // Use HPPLE to parse
    }
    - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
        // Handle error
    }
    

    Now that you have the document text, you could pass that to HPPLE

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

Sidebar

Related Questions

i m making an iphone app that displays data from a website on a
I am making a iPhone app that has two different targets. They use the
I'm making a web app and really like the iPhone-style scrollbars that automatically fade
I'm making an iPhone app that has information about different video games. How can
I'm currently making an iPhone app that has PDF viewing a crucial part of
I am making an application (iPhone app) which gets information (jokes) from an RSS
I'm currently making an iphone web app based on Google App Engine (python). I
I'm making an universal openGL based app that should work on ipod/iphone 2G/3G/3GS/4 and
I am making an iPhone app that will generate something based on quiz answers.
I'm making an iPhone app that uses Core Plot at one point in the

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.