September 5th, 2004, 04:55 PM
I am trying to dynamically populate a combolist from a site on the internet. The problem I am having is that the program does not wait for the content to be retrived from the website. What is the most correct solution for forcing the program to wait? Thanks
September 5th, 2004, 06:03 PM
How are you retrieving the data from the web page?
Are you retrieving a web page and parsing the data from the HTML, or are you using some other format such as XML, XML-RPC or SOAP?
The normal way of retrieving a web page or other resource off of the net is to use urllib. If you use urllib.urlopen to create a file-like object, then call read or readlines on that object it should retrieve all the data before continuing.
Dave - The Developers' Coach
September 5th, 2004, 06:28 PM
Thanks I found a bug, it works now.