What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » XMLHTTP Not Loading After Save

XMLHTTP Not Loading After Save
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: XMLHTTP Not Loading After Save
It's just a matter of speed. (brb)

You need to use the .onreadystatechange function when you start an asynchronous XMLHTTP request, that's what the third parameter of the .open method means: asynchronous or not. When the .send() method is called, the XMLHTTP starts in another thread and will asynchronously process the request. Meanwhile, your script will continue as well. That means that, after the call to .send(), the script will try to assign the .onreadystatechange function. If the download is still busy, it will work. However, if the download is already done after you assign the .onreadystatechange function, XMLHTTP won't call your function any more, since it has already completed.

When you assign the .onreadystatechange function before you call .send(), you can be assured that the process will find your .onreadystatechange function. ;)

This post was edited on 02-04-2008 at 09:04 AM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-04-2008 09:02 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
XMLHTTP Not Loading After Save - by bigbob85 on 02-01-2008 at 01:04 AM
RE: XMLHTTP Not Loading After Save - by ShawnZ on 02-01-2008 at 01:06 AM
RE: XMLHTTP Not Loading After Save - by roflmao456 on 02-01-2008 at 01:11 AM
RE: XMLHTTP Not Loading After Save - by bigbob85 on 02-01-2008 at 01:20 AM
RE: XMLHTTP Not Loading After Save - by matty on 02-01-2008 at 05:37 AM
RE: XMLHTTP Not Loading After Save - by bigbob85 on 02-01-2008 at 05:58 AM
RE: XMLHTTP Not Loading After Save - by matty on 02-01-2008 at 12:05 PM
RE: XMLHTTP Not Loading After Save - by bigbob85 on 02-04-2008 at 12:49 AM
RE: XMLHTTP Not Loading After Save - by Matti on 02-04-2008 at 09:02 AM
RE: XMLHTTP Not Loading After Save - by bigbob85 on 02-04-2008 at 12:49 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On