quote:
Originally posted by Jacen
Don't know what the forum rules about bumping are, but I need an answer
Bumping is only allowed after a few days
quote:
Originally posted by Jacen
So, to get the updated version I should do this
replace
Debug.Trace(xmlhttp.responseText);
with
version = xmlhttp.responseText;? I have a text file thats on my site that the only content in the file is the version number so... Would that place the version number into a varable where I can then use a IF statement to check?
yes that will work, but note that the variable
version will be a string, not a number. So be carefull when you use comparisson operators. See the next links for more info on that:
CookieRevised's reply to Script about lock messenger
CookieRevised's reply to Nudges, Updated.
Also note that this whole routine is not instant; it runs
asyncronically. Thus it can be a while (as in seconds) before anything is returned. So you also better include a time-out meganism.
Complete examples can be found in several scripts. I suggest you take a look at the bundled scripts which comes with the newest Messenger Plus! Live. For example the Now Playing script.