Re: Parsing HTML with javascript ...

Oyku Gencay (oyku@solfix.net)
Thu, 22 Feb 2001 12:49:11 +0200


Hi,

I have once encountered a situation where I needed to parse javascript.
Actually You can parse the HTML document with regular expressions to find
out on mouseover type of code but the best way would be parsing javascript.
This literally means interpretting javascript :) Although you do not need to
execute what the code says but you definitely need to understand what the
code instructs the browser to do. There are some javascript interpretters
out the on the net but unfortunately I don't recall any name or url. Give it
a search at google or sourceforge.

Hop this helps.

Oyku GENCAY

----- Original Message -----
From: Viena Garcia Acosta <viena@sodatec.org>
To: <libwww@perl.org>
Sent: Wednesday, February 21, 2001 8:33 PM
Subject: Parsing HTML with javascript ...


> Hi!
>
> I had been reading and searching all libwww-perl archive and more, and
> still not found an answer.
>
> I'm working at a project that takes a "fake" website and upload it to
> the real server. We start with the index page, and then upload
> every link referred by each different page.
> We use libwww-perl for that, we have an Upload module that use
> HTML::LinkExtor for parsing an HTML file and extracts all links.
>
> Everything was working fine. But now we have included some
> javascript code into the pages, to use common onload and
> mouseover attributes. But the images referred only in onload
> attribute of the body tag, or on the onmouseover att. of href tag, are
> not seeing by the parser and never uploaded to the real server.
>
> So, I'll like to ask if there's some solution already for this
> problem or maybe someone that is working at it.
>
> Thanks,
> Cheers
>
> Viena Garcia Acosta
> Webprogrammer
> SODATEC S.A.
> viena@sodatec.org
> (53-7) 275062