473,699 Members | 2,428 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 3896
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
5991
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
4968
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
1857
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
1435
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
1271
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
2385
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
8064
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
1591
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
1364
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
8706
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
8631
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9055
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7787
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
6550
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
5889
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();...
0
4641
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2366
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2016
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.