Hi
I am not relly familiar with javascript but I need it to run a web application hanging off a database. Within this application I have OnLoad code to do various things when a page is loaded. In some instances this code will call another page. Due to security issues I need to hit my database each time I call a new page so I have to run through the event broker applet.
The problem is that in some cases the page may be loaded and will therefore trigger the onload code but the applet may not be ready and will therefore pop an error saying can’t connect etc,. Is there any javascript function which can detect the state of an applet and tell the code whether its ready for use or not.
Otherwise, I was wondering about the use of “try…catch” statement. Could this be used to try and perform the action involving the applet and if not ready use the catch to delay for x milliseconds and then run the command again. Can you only have one catch per try or could you keep repeating this procedure in a kind of a loop.
Thanks. Any help will be appreciated