Re: libwww & javascript

A would like to do the same thing but How can I dectect the deference 
between  

    <a href="/hello/world">my link

and

    url='"/hello/';
    doc.write("<a href=" + url +'world\"' );


    I've seen someone writing this Sh... code !!   :-|


My problem is to add a session id on the url :-)

	François






On Tue, 10 Jul 2001 18:00:02 +0900
"???" <thedeft@softwise.co.kr> wrote:

> 
> ----- Original Message ----- 
> From: "François Chenais" <Francois.Chenais@citb.bull.net>
> To: <www-lib@w3.org>
> Sent: Tuesday, July 10, 2001 5:37 PM
> Subject: libwww & javascript
> 
> 
> Hello,
> 
> Is libwww included functionnalities for parsing javascript code ?
> 
> 
> François
> 
> 
> -- 
> Francois.Chenais@citb.bull.net
>    BULL-CITB            tel:(+33) 556 437 848   Home: francois@chenais.net
> 207, cours du Médoc     fax:(+33) 556 437 978   http://www.citb.bull.net
>  33000 Bordeaux         BullCom: 227 7848       ICQ :3886291
> -------------------------------------------------------------------- Linux -----
> 
> No, Javascript is not understood by libwww. I'm also looking for ways to parse "some" java functionalities within HTML documents (for following links generated by javascript). I did a little trick with default HTML parser such that things within <SCRIPT> tags are passed as "LITERAL" sgml elements. So that I can use HText_addText calls and parse the codes explicitly. All I've done is extract everything within single/double quotes and decide whether they can be valid links or not. Inappropriate, but worked in quite a few cases.
> 
> Are there open source Javascript interpreters that I may be able to use ?
> 
> 


-- 
Francois.Chenais@citb.bull.net
   BULL-CITB            tel:(+33) 556 437 848   Home: francois@chenais.net
207, cours du Médoc     fax:(+33) 556 437 978   http://www.citb.bull.net
 33000 Bordeaux         BullCom: 227 7848       ICQ :3886291
-------------------------------------------------------------------- Linux -----

Received on Tuesday, 10 July 2001 05:46:01 UTC