Solved

Screen Scraping with Javascript

Posted on 2003-12-04
8
3,245 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
8 Comments
 
LVL 16

Accepted Solution

by:
jaysolomon earned 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 11

Expert Comment

by:Zontar
Comment Utility
> 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:greddin
Comment Utility
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
Comment Utility
0
 
LVL 16

Expert Comment

by:jaysolomon
Comment Utility
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
Comment Utility
JSONP might provide a path to a solution.  It accounts for the cross-site scripting issue.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now