469,167 Members | 2,087 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,167 developers. It's quick & easy.

Determine correct state of HTML Browser

Hello !
I recently read about adding a reference to the VB Project of MS HTML Object library and tried out a click or two. It seems a nice way to automate IE actions.

However, I have some doubts about determining the state of the HTMLDocument object. If one clicks on a link the href of which makes the entire DOM reload (like navigating to a different page for instance), the state is not "complete" [if I'm not mistaken, it is "interactive"]. But, on the other hand, if my page has a link with an href like "javascript:someFunction();" and even if the function takes like 15 seconds to finish, the state was still "complete".

I tried to run the line "Debug.print objDOM.readyState" in a loop. My page had the JavaScript decoding a large Base64 encoded string retrieved from XML file (none of which I'm allowed to share, unfortunately).

So I guess my question is: Is there some means to programmatically find out if the JavaScript triggered by an onclick has finished acting on the HTMLDocument object or not ? This JavaScript could be an internal function or an AJAX request...one can never be sure.

Thanks in advance for sharing information.
Jan 6 '08 #1
0 689

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by lucpustjens | last post: by
2 posts views Thread by Marcia Gulesian | last post: by
88 posts views Thread by Mike | last post: by
10 posts views Thread by crjunk | last post: by
3 posts views Thread by gb | last post: by
3 posts views Thread by Jordan | last post: by
5 posts views Thread by Sean | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.