Solved

screen scraping from parent screen in asp

Posted on 2010-11-30
5
278 Views
Last Modified: 2012-05-10
I have a page that is contained in a frame.  My page is asp, the frame is generated by a different site on a different server.  

If I could tell if the frame contained a certain string, that would help me determine what my page needs to do.  Is there a way to see if the 'parent' frame contains a certain string?
0
Comment
Question by:d2fox
  • 2
5 Comments
 
LVL 18

Expert Comment

by:ChetOS82
ID: 34242416
Since your parent is on a different domain than your page, this is not possible.  Cross-domain scripting security prevents you from accessing the parent page's "internals".  You will get an "access denied" error.
0
 

Author Comment

by:d2fox
ID: 34242735
Well, I was hoping I could 'read' the text, e.g. what I'm referring to is actually displayed on the parent frame.  Can't I get the parent html somehow and look for the text that I'm interested in?  I think I've done this on my own page, just not on a parent page.
0
 
LVL 18

Accepted Solution

by:
ChetOS82 earned 500 total points
ID: 34242810
No, you cannot access the parent page's html from the child (unless they are both on the same domain).

You can try and see what happens.  Use window.parent.document to access the parent page.  You could try something like alert(window.parent.document.getElementsByTagName('html')[0].innerHTML);
0
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 34429114
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

929 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

19 Experts available now in Live!

Get 1:1 Help Now