This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading Browser HTML Source

 
Rufino Rabin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

Im trying to create a small web-app utility (applet) that would read the browsers html source. I read about Browser Helper Objects (BHOs) but I dont want to use any ActiveX component in the browser and was wondering if there is any Java API that I can use to do this.

Thanks in advance.

---
XP
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35977
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rufino,
Welcome to JavaRanch!

You could use a Java URL object to call the page and get the source. This would result in an extra call to the server though. I can't think of a way to get the source that is already on the page.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell us a bit more about what you are trying to do? Which pages are you trying to access, and where - on the client or on the server?

An applet can gain access to the page it's on through a technology called LiveConnect, but that would seem pointless in this case.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!