Delay Script Run in IE5

Delay Script Run in IE5


My project is a based on thin client/server architecture. Internet Explorer 3.02 is the front end using ASP; ActiveX controls and DLLs form the business objects; and Oracle is the back end. We are now migrating from IE 3.02 to IE 5.0. The problem is that in IE5, the VBScript is executing before the control downloads so if there is a reference to the control, we get an error message: Object does not support Uctlir0705.setName – where Uctlir0705 is the control name and setName is the property of the control.

We have tried incorporating a delay loop but this is machine dependent. We have also tried using the show event where we raise another event loaded in the user control but this solution is unstable (sometimes the event loaded does not fire in the ASP).


Place all your client-side script inside a function and then call the function from the BODY ONLOAD event. Only when the page has finished loading will the script start to run.

See also  How to Create and Deploy QR Codes Online: A Comprehensive Guide

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist