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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:37:01+00:00 2026-05-13T21:37:01+00:00

I am trying to display 10 html pages as a single document,with 10 chapters.

  • 0

I am trying to display 10 html pages as a single document,with 10 chapters.
I am using Webkitgtk+ engine to render the HTML pages.
I am getting the content of each html files and concatenating all of them to create a
single ‘char *content’ and using
webkit_web_view_load_html_string(WebKitWebView *web_view,
const gchar *content, const gchar *base_uri);
this function to load all the HTML files, as a document.

Now i am trying to build a ‘table of contents(toc)’ for this document, which displays all the chapter names in order. My requirement is, when i click on a particular chapter in toc, the document should scroll to that point. For that i need to know height of each chapter ( height of each html file content).

The point to be noted here is, the width of the document can changed and as HTML is reflowable, as width increases height decreases and vice-versa. So each time when height changes i need to find out the current height of each HTML page(or chapter) and hence calculate the distance to be scrolled.

How can i find out the height of content of HTML page dynamically ? Thank you for the answer….

  • 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-13T21:37:01+00:00Added an answer on May 13, 2026 at 9:37 pm

    You can use Javascript to get the height of a div. So, wrap each chatper in a div, give it a name or class name, then use javascript to find the height of the div.

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

Sidebar

Related Questions

I want to display a file content (HTML file) inside a web page using
I'm trying to build a CMS in Rails from scratch, and for showing the
I'm trying to develop web application (php/mysql), sort of blog site where ~10 posts
I'm trying to modify an existing Django Mezzanine setup to allow me to blog
I'm trying out the HTML5 localStorage method for saving data. As I understand it,
I'm trying to get a navigation bar that consists of a nav with an
I'm using Google Translate's dropdown menu to translate a site, but this doesn't persist
My Rails app needs to retrieve an updated count from the server every minute.
I have a repeater that displays a custom user control on a form multiple
I need some help figuring out how to make some changes to some .jsp

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.