PDA

View Full Version : Loading and parsing a html file


z.1
05-28-2007, 08:20 AM
Hi,

i have just discovered Openlaszlo and the first question that comes to my mind is , whether it is possible to load a html document (over the internet) and parse it (cut out the needed html lines , maybe even replace some lines) and show it on the canvas?

thnx

d~l
05-28-2007, 09:42 AM
One way would be to use PHP (cURL extension enabled) to "scrape" the HTML and return to your canvas.

senshi
05-28-2007, 11:00 AM
Here's a little sample application.
Basically, it strips out some content from a xhtml-source, rebuilds from this content a new xhtml-page, which will be displayed inside a "<html>"-tag in OpenLaszlo: