Solved

Accessing Frames in a Browser Object...

Posted on 2003-11-23
6
490 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
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.

 
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

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

Suggested Solutions

Title # Comments Views Activity
VB6 add a minute to the date time value 8 64
using Access 8 59
message box in access 4 41
Copy a row 12 59
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

863 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