Fetch Webpage without Freezing WLM [SOLVED] - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Fetch Webpage without Freezing WLM [SOLVED] (/showthread.php?tid=91309) Fetch Webpage without Freezing WLM [SOLVED] by prashker on 07-02-2009 at 07:55 PM
js code: WLM freezes until the page has completely loaded (even in the browser, because of the functions I use in the PHP code, it takes a few seconds). How can I do this in a way that WLM will not freeze. I had an idea, maybe download the page via wget, then load the file locally, and read that. However this script runs every 5 minutes and I don't want a wget command prompt window coming up every 5 minutes RE: Fetch Webpage without Freezing WLM by Mnjul on 07-02-2009 at 08:00 PM
You can make the operation asynchronous by passing true as the third parameter in the Open method. RE: Fetch Webpage without Freezing WLM by prashker on 07-02-2009 at 08:14 PM
quote: Error: The data necessary to complete this operation is not yet available. (code: -2147483638) RE: Fetch Webpage without Freezing WLM by matty on 07-02-2009 at 08:19 PM
js code: RE: Fetch Webpage without Freezing WLM by Mnjul on 07-02-2009 at 08:20 PM
Indeed, you need to call Waitforresponse() which wait until the data is ready ...and that would still block your program. RE: Fetch Webpage without Freezing WLM by mynetx on 07-02-2009 at 08:21 PM
jscript code: RE: Fetch Webpage without Freezing WLM by prashker on 07-02-2009 at 08:47 PM matty's code worked, thanks quote:psh |