
Modify HTML elements in different frame w/ActiveX?
I've got a VB6 ActiveX control that sets the value of some HTML elements on
a web page. Both the control and the elements are in one frame. I can set
the value of any element in the frame by saying something like the
following:
Dim par as Object
Dim hw2 as Object
Dim hd2 as Object
Set par = UserControl.Parent
Set hw2 = par.Script
Set hd2 = hw2.Document
hd2.All.Items("SomeHTMLElement").innerText = "A new value"
However, I can't seem to be able to find a way to set the value of an HTML
element that lives in a different frame using the same logic.
I'm new to VB, but I'm guessing this is because UserControl.Parent is the
HTML page that the ActiveX object is declared in. Is there any way an
ActiveX object can access the HTML elements of another frame? Any
suggestions would be greatly appreciated.
Thanks,
Len