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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:45:54+00:00 2026-05-28T20:45:54+00:00

I need to obtain the code from a web, which is in part pure

  • 0

I need to obtain the code from a web, which is in part “pure HTML” and in part HTML generated with AJAX, Javascript.

Since the easiest way to get it seems to be using Firebug, i’ve thought that it has to exist aome way to use Firebug or some plugin of it to be able to do it from Java code.

The problem i have is that after being searching through many webs and portals i have found nothing.

Anyone knows some way/ some plugin… which makes possible get this AJAX generated code mixed with the static HTML, as Firebug does?

Thanks and please excuse my english.

  • 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-28T20:45:55+00:00Added an answer on May 28, 2026 at 8:45 pm

    Abhijeet is kinda on the right track, but I’m going to take the time to explain how browsers treat webpages and help you understand why your request is so difficult.

    Warning This is quite rough and i am fudging some details for brevity and clarity

    A browser connects to a server and uses HTTP to retrieve the page you have requested. When that page is downloaded, the browser then searches for any additional resources referenced in the page and retrieves them. It then executes any javascript it found top-to-bottom, including any referenced scripts. This javascript can manipulate the page, but by this point, the browser doesn’t care much about the original source code of the page, having internalized it as a DOM, or Document Object Model. Javascript is actually just manipulating this DOM, since the DOM is just a tree structure, not doing any source-code manipulation. As a result, firebug (or the webkit inspector) don’t actually display the source code, they display a representation of the current state of the DOM.

    The problem with your request is that you want to use a separate system to load a url then go through the entire process above, unfortunately that would require you to implement an entire javascript engine, in Java.

    However, all is not lost. HTMLUnit (mentioned by others), is a working, headless browser, written in Java, and as such you can integrate it into your program. Actually doing that is beyond the scope of this answer, but the homepage is here and the API documentation is here.

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

Sidebar

Related Questions

I need to obtain postdata from a form and send it via ajax .
I need to obtain the value from the Label Template Field which is bind
I have written a small java application for which I need to obtain performance
I have a web application that I need to manually obtain a Freemarker template
I need to obtain the error number from an error that has occurred in
We need to get web page HTML source document loaded on the PIE web
currently i obtain the below result from the following C# line of code when
The problem: I need to obtain the selected text from a window in a
I need to obtain the server time but I only have javascript to play
How can I obtain all stored procedures and their code from SQL Server? I

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.