Computing.Net > Forums > Programming > javascript: reading from URL?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

javascript: reading from URL?

Reply to Message Icon

Name: Johanovitch
Date: June 30, 2002 at 15:18:46 Pacific
Comment:

Is there a way to read from an existing webpage (I mean reading the html-code) using javascript?

I know how to read from an url in a javaprogram, but I don't know how or if I can convert it to a javascript.

the thing I want to accomplish is to read certain lines of the html-code from a page and display them somewhere in my webpage. In this way, I don't have to update my own webpage when the data changes on the other page. (to get it working, reading only the first line is good enough for me, the rest I should be able to solve myself.)

thanks
Johan
ps, if it's to difficult to display the code in a post, please email me.




Sponsored Link
Ads by Google

Response Number 1
Name: muska
Date: June 30, 2002 at 21:53:04 Pacific
Reply:

No, I don't believe that's possible. If you do figure something out though, please say so.

You can view the source in another way though, but I'm not sure if you can put it into a variable. You do this:

window.location = "view-source:" + window.location

or you can replace the second window.location with a URL.


0

Response Number 2
Name: Johanovitch
Date: July 16, 2002 at 13:17:43 Pacific
Reply:

Hmm, I'll see what I can do with that.

A friend told me that I need JSP to run on my server to be able to do that, because then, you would be able to run normal javaprograms... didn't try that out yet...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: javascript: reading from URL?

java arrays and reading from file www.computing.net/answers/programming/java-arrays-and-reading-from-file/14305.html

Reading from input www.computing.net/answers/programming/reading-from-input/1305.html

Reading from a text file in C++ www.computing.net/answers/programming/reading-from-a-text-file-in-c/8983.html