Click to See Complete Forum and Search --> : capture contents from a html page


foobaz
12-06-2002, 07:14 AM
Hi there,

I am new in this forum and new to javascript as well.
What I would like to do is to read the contents of a page and store them in a String variable.
E.g.:
myString = getContents("http://foo.bar/something.html);

The problem is to find a way for this "getContents(URL)"... I've searched several tuturials, but I did not find any hints how to do this.
Is it not possible in javascript to read the contents of a webpage? :confused:
Best regards,
foobaz

foobaz
12-06-2002, 07:25 AM
Thanks Dave for your quick response.
Unfortunately the page I need to load is from a different domain.:(
So I think I will use a Java Applet for this task.
Best regards,
foobaz