dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Feb 7, 2000

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Delay Script Run in IE5

Question:

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).

Answer:

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date