Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 3rd, 2007, 11:32 PM
Authorized User
 
Join Date: Mar 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to catch event of a DLL in JavaScript ?

Dear friend,

do you know how to catch event of a DLL in JavaScript ?

The DLL is Com Dll (it works in VBSCRIPT/JAVASCRIPT),
in Visual Basic .NET, we can use AddHandler...
but i can not find out similar method of AddHandler, or
way of catching an event handler/procedure from a DLL
in JavaScript ..

does anybody know it ?

Thank you,
hendy

 
Old April 4th, 2007, 01:50 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

If you are using the DLL from a web page then you need to instantiate it via an object element and give it an ID. You can then trap events using the script element, setting the "for" attribute to the ID of the object and the "event" attribute to the event's name. If you are using a stand alone script, such as run by WScript then look at the documentation regarding ConnectObject and CreateObject.

--

Joe (Microsoft MVP - XML)
 
Old April 4th, 2007, 06:50 AM
Authorized User
 
Join Date: Mar 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dear friend,

thank you,

btw, could you please give useful link/reference for it ?
or perhaps some sample code,

tks,
hendy






Similar Threads
Thread Thread Starter Forum Replies Last Post
working with DLL event, method in JavaScript hendyhanusin Javascript How-To 0 March 23rd, 2007 05:12 AM
working with DLL event, method in JavaScript hendyhanusin Javascript 0 March 23rd, 2007 04:54 AM
Detect dll through javascript vinodkalpaka Javascript 0 July 18th, 2005 03:34 AM
How do I catch SelectionChangeCommitted event of a SupaHoopsa General .NET 1 February 24th, 2005 05:17 AM
catch event of dropdownlist inside datagrid alyeng2000 ASP.NET 1.0 and 1.1 Professional 3 August 24th, 2004 10:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.