Itamar S.-T. wrote:
>
> Andrew Scherpbier wrote:
>
> > A while ago I saw something about a GPL'd javascript parser. Anyone know if
> > that could be used in conjunction with htdig?
>
> Actually, all you would need to do is have ht://Dig treat
>
> location="somewhere.html";
>
> inside <JAVASCRIPT></JAVASCRIPT> tags the same way it does
>
> <A HREF="somewhere.html">
>
> This should be pretty easy. I'd try it myself, but I don't know any
> C++. At worst, I'll figure it out myself - shouldn't be too hard.
>
I wish life were that easy...
The problem is that javascript is a full language and therefore to detect
these types of assignments, you'd have to interpret the whole script. For
example, what would
location = somewhere;
mean? Now you'd have to lookup and *track* the value of the variable
'somewhere'.
--
Andrew Scherpbier <[EMAIL PROTECTED]>
Contigo Software <http://www.contigo.com/>
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.