problems with reading frames

MikelS

New member
Joined
Aug 11, 2007
Messages
1
Location
Switzerland
Programming Experience
1-3
Hi all

First, I'm sorry for my English. I descripted my problem in a few German forums, but nobody knew a solution.

I'm working on a VB-project, which reads files from the internet like this:

VB.NET:
Private Function GetFrameContent()
    If WebBrowser.Document.frames.length > 0 Then
        GetFrameContent = WebBrowser.Document.frames.item(0).document.documentElement.outerHTML
    End If
End Function

But by trying this I bumped into a little problem, that has occupied me a pretty long time. It's about the cross-domain-phenomenon. So if I would like to read a html-document of a frame that is on an other website, the following error message appears:

access is denied

As I had to experience is this a security measure of the internet explorer. Because of that I searched for a possiblity to switch of this safety adjustment and have found this website Security Considerations: Hosting and Reuse. So tha's my question. Is this the solution of my problem? Or are there other possibilities to adjust the internet security measure? If yes, how is it to manage?


many greet
MikelS
 
Back
Top