Shoutbox

http Request Error - 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: http Request Error (/showthread.php?tid=92492)

http Request Error by xljeff on 10-07-2009 at 05:52 AM

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.


RE: http Request Error by Spunky on 10-07-2009 at 09:33 AM

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.


RE: http Request Error by xljeff on 10-07-2009 at 11:40 AM

Thank you very much....  m ( _  _ ) m

i try to add this in code !

try{
    http.send(null);
}catch(err){
     MsgPlus.AddTimer("RefreshPSM",1000);
}