problem with DOM and accessing Frames in IE5 
Author Message
 problem with DOM and accessing Frames in IE5

I'm having touble accessing a frame with web browser control this is the
code i use. Im 1st making sure that it is a frames page but i get an error
that says "ACCESS DENIED" Run-time error '-2147024891' i have no idea why i
get that because the frame exists. any help would be appreciated :)
-frank

    Dim sel As MSHTML.IHTMLSelectionObject
    Dim txt As MSHTML.IHTMLTxtRange
    Dim doc As MSHTML.HTMLDocument
    Set doc = frmBrowser.brwWebBrowser.Document

If doc.frames.length >= 1 Then

                For x = 0 To doc.frames.length - 1
                   If Not doc.frames(x).Document.selection.Type = "None"
Then
                         Set sel = doc.frames(x).Document.selection
                        Set txt = sel.createRange
                        Genie.Show

                        Genie.Speak txt.Text
                        'MsgBox doc.frames(x).Document.selection
                    End If
                Next x
            Else
                Set sel = doc.selection
                Set txt = sel.createRange
                MsgBox txt.Text
            End If



Tue, 30 Apr 2002 03:00:00 GMT  
 problem with DOM and accessing Frames in IE5
Francisco,

    Are the frames from different domains?  This is most likely the cause.
Accessing the frame that exists in a different domain is a security
violation.

--
                         - Nicholas Paldino



Sat, 04 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. problem with DOM and accessing Frames in IE5

2. Accessing IE5 DOM from inside my clientside activex obj in a activex dll

3. dom-com-ie5 oh my

4. Changing the contents in the left frame of an FTP window in IE5

5. Changing the contents in the left frame of an FTP window in IE5

6. Repost - Help with Documents in Frames in IE5

7. Access HTML DOM from vbscript??

8. vbscript access DOM collection

9. Accessing the DOM in VBScript

10. Accessing IE DOM from ActiveX EXE

11. Accessing IE DOM from ActiveX EXE

12. Trying to access a DOM object created at runtime, VB - WebBrowser

 

 
Powered by phpBB® Forum Software