What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » http Request Error

http Request Error
Author: Message:
xljeff
New Member
*


Posts: 11
Joined: Sep 2009
O.P. http Request Error
Thanks for your Help

This code running at every 1 mintues to Browse a web page
only few times get error ( about 1 error / 1 day , but not the same time)
when this error happend , Timer will stop....
that's my big problem..if timer stop , i have to restart it by manual..

is there any way can fix this problem ?
(Be like check http request status..) , or any way can restart Timer by auto ?


My Code ----
1297        http.open('POST', url, false);
1298        http.setRequestHeader("If-Modified-Since","0");   
1299        http.send(null);
1230        html = html + unescape(http.responseText);
Error -----
Error: (SystemError): -2146697211。
(Code: -2146697211)
       File: Date+Time.js. Line: 1299.


This post was edited on 10-07-2009 at 05:56 AM by xljeff.
10-07-2009 05:52 AM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: http Request Error
Find some informatioin on google about a try...catch statement in jscript.

A Clue: You would be able to re-add the timer in the catch statement.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-07-2009 09:33 AM
Profile PM Find Quote Report
xljeff
New Member
*


Posts: 11
Joined: Sep 2009
O.P. RE: http Request Error
Thank you very much....  m ( _  _ ) m

i try to add this in code !

try{
    http.send(null);
}catch(err){
     MsgPlus.AddTimer("RefreshPSM",1000);
}
10-07-2009 11:40 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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