Solved

Screen Scraping with Javascript

Posted on 2003-12-04
8
3,265 Views
Last Modified: 2012-07-03
Is it possible to do a screen scrape with Javascript?

My situation is that I have a web page that contains a column of information. This column is built with a variety of CMS and ASP applications. I need to feed this column to another vendor's external web page.

Their technologies prohibit me from using ASP.Net or ASP. Is there a way I can do this with Javascript?

Thank you,
-Greg
0
Comment
Question by:greddin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 16

Accepted Solution

by:
jaysolomon earned 125 total points
ID: 9877698
can they not put a iframe on their site and set the src to yours?
0
 
LVL 11

Assisted Solution

by:SweatCoder
SweatCoder earned 250 total points
ID: 9877977
you technically can't screen scrape with javascript, but. . .

jaysolomon is right, just embed an iframe or even a standard frame and point the source at the correct url.

or you could have the js write out the iframe dymaically, like:

document.write("<IFRAME SRC='http://www.google.com'>")

don't know why you'd want to do the dynamic method unless you're determine the url at runtime, etc.
0
 
LVL 11

Assisted Solution

by:SweatCoder
SweatCoder earned 250 total points
ID: 9877997
btw, if you DO want a nifty way to screen scrape within asp, there's a way to do it. native asp won't let you do it, but of course asp.net can do it. but there's a way in classic asp to achieve this and it's airtight.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:Zontar
ID: 9879089
> Their technologies prohibit me from using ASP.Net or ASP.

How so? Their technology choices should have no effect on what you can or can't do on your own server. Please explain.
0
 

Author Comment

by:greddin
ID: 9882839
Zontar, I don't think you understand. They are running Apache. I can't do ASP on their server. If we're talking about doing a screen scrape of a page on my server with ASP - I can't do ASP on their side.
0
 
LVL 8

Assisted Solution

by:nishikanth
nishikanth earned 125 total points
ID: 9910824
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10394465
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: jaysolomon {http:#9877698} & SweatCoder {http:#9877977} & Zontar {http:#9879089} & nishikanth {http:#9910824}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jAy
EE Cleanup Volunteer
0
 
LVL 1

Expert Comment

by:gesownEE
ID: 38150678
JSONP might provide a path to a solution.  It accounts for the cross-site scripting issue.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question