473,602 Members | 2,891 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to wire ActiveX control events sinks.

Dan
I am using ado and the record set ocx. I want to be able to receive
RecordsetChange Complete events. I am running client side scripts and
want notification if someone else edits the data. The prototype for the
event is :
RecordsetChange Complete reason,objErr,s tatus,objRs so...
I did this:
function recordchanged(v 1,v2,v3,v4)
{
alert("recordse t changed");
}
var rs = new ActiveXObject(" ADODB.Recordset ");
rs.RecordsetCha ngeComplete=rec ordchanged;

It does not appear to be working. Can someone tell me how to wire up
the event sink for an activeX control in Javascript. Thanks, Dan

Mar 16 '06 #1
5 3893
On 16 Mar 2006 11:10:31 -0800, "Dan" <da*****@gmail. com> wrote:
I am using ado and the record set ocx. I want to be able to receive
RecordsetChang eComplete events. I am running client side scripts and
want notification if someone else edits the data. The prototype for the
event is :
RecordsetChange Complete reason,objErr,s tatus,objRs so...
I did this:
function recordchanged(v 1,v2,v3,v4)
{
alert("records et changed");
}
var rs = new ActiveXObject(" ADODB.Recordset ");
rs.RecordsetCh angeComplete=re cordchanged;


function rs::RecordsetCh angeComplete

Jim.
Mar 16 '06 #2
Dan
Not sure what you mean but, doing something like
var rs = new ActiveXObject(" ADODB.Recordset ");
function rs::RecordsetCh angeComplete(v1 ,v2,v3,v4)
{
alert("record changed");
}

this results in an Object expected error? Could you be a little more
specific as I am new to javascript?

Mar 16 '06 #3
On 16 Mar 2006 13:12:24 -0800, "Dan" <da*****@gmail. com> wrote:
Not sure what you mean but, doing something like
var rs = new ActiveXObject(" ADODB.Recordset ");
function rs::RecordsetCh angeComplete(v1 ,v2,v3,v4)
{
alert("recor d changed");
}

this results in an Object expected error? Could you be a little more
specific as I am new to javascript?


<script>
rs = new ActiveXObject(" ADODB.Recordset ");
</script>
<script>
function rs::RecordsetCh angeComplete(v1 ,v2,v3,v4)
{
alert("record changed");
}
</script>
(for various reasons which would be apparent if you read the JS spec,
but just trust that the initial creation and the assigning event
handlers need to be in seperate blocks.)

sorry for not mentioning it.

Jim.
Mar 16 '06 #4
Dan
Thanks

Mar 17 '06 #5
Dan
Thanks for the help. This still doesn't work but it is because ADO
Recordset events cannot be scripted with either javascrip or vbscript.

Mar 17 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5978
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is a ocx developed my me use vc6,this ocx works fine in wxpython. but you can see i only change this ocx with a new DICOM ocx and set up eventClass,
2
4967
by: S.Kartikeyan | last post by:
Hello group, I have the follwing problem with microsoft web browser activex control. I have a fileopendialog control. I open different files in the IEActivex control based on the filename in the fileopendialog control. When i open ppt or doc or pdf files it is nice that it opens them in its window. THE PROBLEM NOW IS when ieactivex control is opening these different
0
1837
by: Peter | last post by:
I have a VB6 program which can receive Keydown events on an ActiveX control. The ActiveX control can't fire keydown events so I put a picturebox below the ActiveX control. I write codes in function picturebox_keydown in response to the keydown events on the ActiveX control. These can work well. But when I update these codes to vb.net I got a message 'UPGRADE_WARNING: PictureBox event Picture1.KeyDown can't be updated. Click to get more...
3
1428
by: Weston Fryatt | last post by:
I have a custom written ActiveX Control (written in VC++ 7 unmanaged) that is embedded on a web page, I need to be able to send events (like button click and toolbar clicks) from the ActiveX Control (clients side) to ASP.Net (server side) Can this be done? If so any clues on what to search on? Thanks, Weston Fryatt
0
1270
by: swong4 | last post by:
Hi all, I am trying to use an ActiveX control on the server-side of an ASP.NET 2.0 application written in C#. The ActiveX control is a 3rd-party interface to a data feed used by my application and does not have a GUI. To accomplish this, I am trying to create a Windows.Form to host the ActiveX control with the intent that the events generated by the control could be used by the server for data processing.
2
2372
by: Chu | last post by:
Thanks everyone for taking a moment to read this. I've got a page where I use a LinkButton and I wire up a dynamic event to the button. When the user clicks the button, the event is fired as expected. In the event code for that button, a new LinkButton is added to the page and is wired up to yet a different event, however when clicked, the page is posted back but the event is not triggered. I'm assuming it has something to do with the...
6
8039
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll .dll I can not call the functions in the ActiveX component. In the next step I tried to use the ActiveX component in a class library. I simply added a reference to the corresponding COM component. This this only
0
1585
by: Lee | last post by:
I have an activex control built with VS 2005, C#. I have a "Done" event that I fire from the control when some processing is done. I have tested this with a C++ app as the host, and I do get the event. But when I place the control in an Object tag on an ASPX page, and add my event handler in VBScript, I do not get the event. Its like the event was never hooked up on the web page. Is there anything special I need to do on my control...
0
1362
by: miarfej | last post by:
Hi to all.. i am just new here, hoping to find some suggestions. I am writing a code in VC++. It is about creating an activeX control using MFC. This control exposes the properties and methods of another (hidden, we may say) activeX control using IDispatch implementations (GetIDsOfNames, and Invoke). I have no problem with these things. My problem is that, I need also to expose the events of the hidden activeX control. That is, my custom...
0
7993
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8405
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8056
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8270
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6730
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1511
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.