473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Reading Webpages using javascript

I am writing a program that will allow a user to enter a webpage
address into a form.
Then it will download and display the webpage below the current one.

example
----------------------------------------------------
| _____________ |
| _____________enter web address | Load Button | |
| -------------- |
|_________________________________________________ __
| |
| |
| web page will be displayed here |
| |
|_________________________________________________ _|
Is there a way to download another web page using javascript and read
through it.
I am not too concerned with displaying the web page just downloading
it. Has anyone done anything like this? the closest I have found was a
procedure used by grease monkey "GM_xmlhtt" which is what I am looking
for.

Thanks in advance
Brett

Jul 23 '05 #1
1 1601
Brett wrote:
I am writing a program that will allow a user to enter a webpage
address into a form.
Then it will download and display the webpage below the current one.

example
----------------------------------------------------
| _____________ |
| _____________enter web address | Load Button | |
| -------------- |
|_________________________________________________ __
| |
| |
| web page will be displayed here |
| |
|_________________________________________________ _|


<form name="myForm">
<input type="text" name="URLToAccess">
<input type="button" value="Load Button" onclick="goToURL()">
</form>

<iframe name="myIframe"></iframe>

function goToURL(){
document.frames['myIframe'].src=document.myForm.URLToAccess;
}

Is there a way to download another web page using javascript and read
through it.
Not if its from a different domain unless your page is locally run.
I am not too concerned with displaying the web page just downloading
it.
If you don't want to display it, why are you downloading it?
Has anyone done anything like this?
Actually, I have.
the closest I have found was a procedure used by grease monkey "GM_xmlhtt"
which is what I am looking for.


Without seeing the function GM_xmlhtt, I would guess its just GM's name
for an XMLHTTPRequest function.

http://jibbering.com/2002/4/httprequest.html

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... ...
7
by: dow | last post by:
I'm looking for ideas or how to make webpages for members. I want a member log in and view their profiles and check boxes stating that they have completed listed instructions and waiting for the...
5
by: Michael Landberg | last post by:
Hi this may be a stupid question, but anyway! I have created a website with a few pages. I have noticed that when I change the IE browser text size ( through the view menu -> text size) to...
3
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
12
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
7
by: Patricia Mindanao | last post by:
I have a directory tree on my hard disc which represents all the web pages and linked stuff on my mirrored web hoster server. All web pages and files are statically linked. So dynamically...
4
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I have made a dynamic website using HTML, ASP, JavaScript for my college project..... My website is running pretty well at home as well as in college...I mean linking and all, also no problem with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.