BUG: OnDataSetChanged and OnDataSetComplete Events Do Not Fire Until Recordset Is Accessed (234469)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 5
- Microsoft Internet Explorer (Programming) 5.01
This article was previously published under Q234469 SYMPTOMS
When you use the RDS Data Control to access data on a remote server, the OnDataSetChanged and OnDataSetComplete events may not fire until a method or property of the recordset is accessed. This behavior only occurs the first time the recordset is loaded into the control, and only if the event is named in the script using the ControlName_EventName syntax.
RESOLUTION
To resolve this problem, use inline event declarations or script tags specifying the object and event. To use inline event declarations, include the event name as an attribute of the object tag, and then set it equal to the name of the function you want to use for the event, for example:
<OBJECT CLASSID="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33"
ID=ADCControl
HEIGHT=10
WIDTH=10
OnDataSetChanged="MyDC_DataSetChanged">
</OBJECT>
Declare a sub in the script named MyDC_DataSetChanged and insert the code for the event.
Optionally, you can declare the event function in the script tags and specify the object and event name, as follows:
<SCRIPT FOR="MyDC" EVENT="OnDataSetChanged" LANGUAGE="JavaScript">
// code for event here
</SCRIPT>
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/8/2003 |
---|
Keywords: | kbbug kbpending KB234469 |
---|
|