PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → ::: HTMLControl
::: HTMLControl
Started by Kevin Willis, Feb., 05 2004 7:40 PM - 2 replies
Posted on February, 05 2004 - 7:40 PM
Is there any way to detect when an HTML control
has been completely populated?
Assume you have an HTML control called 'WEBPAGE':
WEBPAGE = "http://www.windevus.com"
Is there anyway to know when this request is completed?



http://www.westcoastsoftwaresolutions.com
Posted on February, 05 2004 - 10:35 PM
G'day Kevin
I am not sure if you are asking if the field has anything in it or if it has a url in it and it has been executed.
For the former you could use position() to see if one of the standard url extensions like ".com" , ".org", ".net" etc are in the control on the assumption that a valid url will have one of these in it
If you want to know if the url had been accessed via a browser you would need to start the browser using DDE rather than shellexecute, as it returns a status
Regards
Al
Posted on February, 06 2004 - 12:41 AM
Hi,
Is there any way to detect when an HTML control
has been completely populated?
Assume you have an HTML control called 'WEBPAGE':
WEBPAGE = "http://www.windevus.com"
Is there anyway to know when this request is completed?

Windev's HTML control is based on MSIE. So first if IE is
not installed (maybe not that often on a MS OS , but
possible anyway) then no WinDev HTML control!
An automation example of what you want:
---
objIE is object automation "InternetExplorer.Application"
objIE>>Navigate("http://www.windevasso.org/")
while objIE>>Busy = true
multitask(10)
end
multitask(100)
while upper(objIE>>Document>>ReadyState())<>"COMPLETE"
multitask(100)
end
---
Peter
btw, why do you always put ::: in front ?


http://www.xs4all.nl/~petervu