Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Accessing Frames in a Browser Object...

Posted on 2003-11-23
6
Medium Priority
?
509 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Suggested Courses

618 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