We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Rendering HTML / Browser
Page Index Toggle Pages: 1
Rendering HTML / Browser (Read 1701 times)
Rendering HTML / Browser
Apr 29th, 2009, 3:27am
 
hello

I'm working on an installation where I'm generating data out of the html code of websites. The basic idea is that someone can sit down at a computer and surf the web while the code of the websites he surfs to generates some data to trigger things.
The analysing part seems not to be a big problem, I will either use processing.org/learning/libraries/httpclient.html or proHTML.
But I don't know how to show a browser to the user of the installation, the best thing would be if I could render the html in Processing, but I did not find a lot of information. This seems to be a solution;
workshop.evolutionzone.com/2007/08/30/jdic-embedding-a-web-browser-in-java/
but it seems to be problematic on mac
I'm very thankful for every hint or idea!

(sorry for the links, seems like I can't post active links)
Re: Rendering HTML / Browser
Reply #1 - Apr 29th, 2009, 6:24am
 
or you can make a website to browse other website, (with a toolbar attached to the top, like google images), and have that toolbar feed your project-data to processing with javascript.
Re: Rendering HTML / Browser
Reply #2 - Apr 30th, 2009, 2:29am
 
seltar wrote on Apr 29th, 2009, 6:24am:
or you can make a website to browse other website, (with a toolbar attached to the top, like google images), and have that toolbar feed your project-data to processing with javascript.

thank you very much! this would be a possibility, but having everything in the processing scetch would be cooler, any ideas for doing this
Re: Rendering HTML / Browser
Reply #3 - Apr 30th, 2009, 4:05am
 
the code at the bottom of this thread (http://forums.devx.com/showthread.php?t=149187) worked.. but no css or javascript..
or you can try Lobo, the opensource java browser to get a better result..
http://lobobrowser.org/java-browser.jsp

or browse sourceforge for other alternatives to Lobo.

JRex is a possibility.. somebody should check that out, and make a wrapper for Processing
Re: Rendering HTML / Browser
Reply #4 - Apr 30th, 2009, 6:11am
 
Lobo is an interesting project. I see they have Cobra: Java HTML Renderer & Parser, the parsing and display engine, which might be the thing to embed in the applet (but I doubt it is simple or small!).

JRex is indeed another component, apparently leveraging directly the Gecko engine, a bit like JDIC does.
Page Index Toggle Pages: 1