/    Sign up×
Community /Pin to ProfileBookmark

fetching html source code

i am a novice programmer, a beginner. my first javascript project is a custom gadget that will fetch info from various websites and display them for for me in one place.

problem is, i am stuck. all i have found is XMLHttpRequest. i don’t think that is what i need.

can someone please point me in the right direction?

Thank you,
outawater

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@rootJun 10.2007 — you will need the aid of a server side language like PHP.

the XML Http Request will only work on the domain from which the script was served from.
Copy linkTweet thisAlerts:
@outawaterauthorJun 10.2007 — thank you for your reply.

i'll check that out.

i've been looking at python too. maybe i should write a simple server in python to get the web pages, parse them, and then feed the xmlhttprequest? does that sound like the right track?
Copy linkTweet thisAlerts:
@jsakalosJun 11.2007 — thank you for your reply.

i'll check that out.

i've been looking at python too. maybe i should write a simple server in python to get the web pages, parse them, and then feed the xmlhttprequest? does that sound like the right track?[/quote]


Yes, this should work.
Copy linkTweet thisAlerts:
@outawaterauthorJun 11.2007 — thank you. i will try to proceed. all this stuff is pretty complicated to figure out all by yourself.
Copy linkTweet thisAlerts:
@jsakalosJun 11.2007 — Try to look here.
×

Success!

Help @outawater spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...