Is it possible to detect when java is running on a page? During automated COM lookups - I pause to wait for the browser to complete procedures. The normal routines seem to be blind to java functions run by the page. I have added fixed delays on top of delays based on .busy and .readystate status. The delays must be longer than desired for larger results and/or slower machines.
Before I attempt a 'workaround' - is there any "in process" method for java?
I have noticed that .readystate returns 4 and 'complete' - are there any other values that may help? What does the .readystate=4 mean? maybe that's it?
Here is what I am using:
While browser.busy || browser.readystate == 1
and
While browser.Document.ReadyState != "complete"
Maybe another option?
thanks
I just got his and after testing .readystate returns 4 while java is running
READYSTATE_UNINITIALIZED (0)
The object has been created, but not initialized (the open method has not been called).
READYSTATE_LOADING (1)
A request has been opened, but the send method has not been called.
READYSTATE_LOADED (2)
The send method has been called. No data is available yet.
READYSTATE_INTERACTIVE (3)
Some data has been received; however, responseText is not available.
READYSTATE_COMPLETE (4)
All the data has been received.
I have tested with browser.readystate and browser.document.readystate but they return '4' and 'complete' respectively - before data is acquired.