Re: how to read the content from webpage

Giganews Newsgroups
Subject: Re: how to read the content from webpage
Posted by:  SAM (stephanemoriaux.NoAdmin@wanadoo.fr.invalid)
Date: Thu, 20 Mar 2008

mekalaiā€¦@gmail.com a écrit :
> I have the URL for example (http://www.example.com)
> from that url have the <div class = "abc"> xxxxx</br><div>

the file called at this url has '<div ... '

> i need to read the content from the URL is xxxxx only....... how to
> read the Div tag value from the specific webpage using javascript

1) the file must be in the same domain
2) you'll have to load somwhere this file
    directly in a tag 'object' or in an iframe
    or via Ajax
    (Ajax is better to get the content of the called file)
3) from that point you'll de abble to use DOM JS functions to
    analyize this loade page to extract the wanted fragment

--
sm

Replies

None

In response to

how to read the content from webpage posted by mekalaiā€¦@gmail.com on Wed, 19 Mar 2008