Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call Javascript from ActiveX control?

Status
Not open for further replies.

gregquinn

Programmer
Feb 11, 2002
23
ZA
I have written an ActiveX control that loads in the user web browser.

I have 2 frames on the website. The ActiveX is in one frame, and another page in the other frame.

When the user clicks a certain button on the activeX control, I would like it to call the following Javascript

parent.frame2.location = "viewrecord.aspx?recordID=" + recordID

How do I call this JavaScript from the ActiveX control?

Thanks
Greg
 
You can not call directly java/VBscripts from ActiveX. You can only use ActiveX events to run scripts. What kind of events you can handle deppends on the ActiveX you use.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
So how do I call a script from an ActiveX event?

Can you guive me a useful example?

 
no comments...

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top