Modify HTML elements in different frame w/ActiveX? 
Author Message
 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



Wed, 11 Jun 2003 09:52:01 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Accessing HTML elements in a different frame w/ActiveX

2. How can i load a new html page in a different frame

3. HTML page within ActiveX Ctl accessing browser elements

4. HTML page within ActiveX Ctl accessing browser elements

5. Refer to Other Page Frame Elements using VBScript

6. Referencing an element in a frame

7. Assign Control Array element to a frame

8. Popup Window to modify frame source?

9. Modify a text field in another frame

10. modify HTMLDocument from scratch with frames

11. IE.App-DHTML Dialogs - Accessing HTML Element Styles

12. Stumped: looping through elements in an HTML table

 

 
Powered by phpBB® Forum Software