Hi,
response.on('data', function (chunk) {
resData += chunk;
console.log('BODY: ' + chunk);
});
the result is ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://
www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/
schema/" xmlns:legacy="http://www.legacy.com/ns#">
<head id="ctl00_Head1"><title>
CHICAGO SUN-TIMES OBITUARIES: Complete listing of Chicago Sun-Times
Obituaries powered by Legacy.com
</title><meta name="description" content="Greater Chicago obituaries
from the Chicago Sun-Times and other Illinois obituary sources.
Explore life stories, offer tributes/condolences, send flowers or
create a lasting online memorial for loved ones."></meta><meta
name="keywords" content="Obituaries,Death Notices,Newspaper
Obituaries,Online Obituaries,Guest Book,Grief and
Loss,Tribute,Memorial,Funeral Home
Information,Bereavement,Chicago,Chicago Sun-Times"></meta><script
src="http://mi-static.legacy.com/obituaries/scripts/jquery/
jquery-1.7.1.min.js" type="text/javascript"></script><script
src="http://mi-static.legacy.com/obituaries/scripts/jquery/jquery-ui-
custom.js?v=26.0.10409.5112&s=62" type="text/javascript"></script>
..........
here we want to add one more <script> into this 'resData'
how can we do this?
how can we select particular tag element using node.js?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en