View Full Version : Load multiple urls in a single web object
aramos
04-11-2006, 05:28 PM
I am trying to load multiple URLS into one web object one after the other. i need to open various URLS when the first one loads and finishes loading the other one loads. each url returns an XML code. when it finishes loading i need to open the other one and the next one. it reads the URLS from a text file. i have managed to do that. ive managed to make the app return all the urls in a paragraph object but i cant seem to make the urls load one after the other into the web object
Try with an Application.Sleep(some time in miliseconds here);
aramos
04-11-2006, 07:20 PM
i already tried with that but it will load only the last one
i have uploaded the app so you can see the coding
Please Advice
yosik
04-12-2006, 02:26 AM
You have an event of the WebObject called onLoaded which will perform any action you setup AFTER the URL has finished loading.
So you could use that to load one URL after another (the list taken from a textfile, a ini file, a previously built table....anything).
Hope that helps
Yossi
aramos
04-12-2006, 07:41 AM
but how would i do the looop because theres always a different amount of urls. today it could be 1 but tomorrow it could be 20. how would i do the loop on the script like load URL (on load) load url2 and loop there untill load urlLAST is performed. i haave uploaded an app where the urls are in a paragraph object that reads from a txt file
please advice
thanks
playmenow
04-12-2006, 09:24 AM
You could use this:
for index, url in MyURLTable do
Web.LoadURL("Web1", url);
end
And use TextFile.ReadToTable or create your table, etc...
I now (finally) understand how to loop through a table :D
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.