Solved

Accessing Frames in a Browser Object...

Posted on 2003-11-23
6
493 Views
Last Modified: 2010-05-01
I have some Problems accessing Frames in a Browser Object..


This Code produces a RT-Error and wont let me do as i wish...

The error Produced is : 80070005 Access denied
    Dim i As Long
    If (WebBrowser1.Document Is Nothing) Then Exit Sub
    With WebBrowser1.Document
        If .frames.length > 0 Then
            For i = 0 To .frames.length - 1
                Debug.Print "FRAME " & i
                Debug.Print "========"
                Debug.Print .frames(i).Document.body.innerhtml '<--- Here
            Next i
        End If
    End With

0
Comment
Question by:rdrunner
  • 4
6 Comments
 
LVL 11

Author Comment

by:rdrunner
ID: 9805569
P.s.: This is a cross domain Problem... The Browser contains 1 Frame and the browser displays 1 URL and the Frame is used to navigate to the other URL with the Data attached the the URLs...
0
 
LVL 28

Accepted Solution

by:
AzraSound earned 500 total points
ID: 9820415
0
 
LVL 11

Author Comment

by:rdrunner
ID: 9821066
Ahhhh well...

There is one sentence i hate about the MSDN.....

---
STATUS
This behavior is by design....
---

Well i found a work around (messy but working) I just redirect the top frame to the url of the inner frame and i am able to mess with the page like i desire... Messy but working :) And since its only for personal use i can live with it... Anyway... Thanks for the link to the Article... If noone comes up with a better solution ill accept it when a cleanup guy shows up :)

0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 11

Author Comment

by:rdrunner
ID: 10009727
Well looks like this one is dead by now.... Here are your Points...

Happy new Year!
0
 

Expert Comment

by:RomMod
ID: 12019474
rdrunner, It appears that you have devised a workaround... However, the exact syntax as to how it was accomplished
was not posted... could you please elaborate for the benefit of others reviewing this question from the PAQ database?

Thank you,
RomMod
Community Support Moderator
0
 
LVL 11

Author Comment

by:rdrunner
ID: 12094635
I really would not give this workaround to any client...

But for the record..

I keep a 2nd browser open (invisible) which only holds the contens of the frame i am interested in. This 2nd browser is updated everytime i recieve a navigate event from the frame i am watching. Since i am only interested in the information in that frame this workaround works. If i want to update or control the contens then i would be stuck with this. Like i said its functional but not elegant :/
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

820 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