Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows XP - send error message alert

Status
Not open for further replies.

simonchristieis

Programmer
Joined
Jan 10, 2002
Messages
1,144
Location
GB
Does anyone know how I can detect this ms alert using javascript?
 

Do you mean the standard Javascript error alerts that pop up when a Javascript error occurs in a browser, or the Windows Messenger Service boxes that can pop up when you receive a message? Or something completely different?


Dan
 
I mean when using xp and a program crashes, there is a MS alert that appears asking if you want to report the error, then automatically closes the program.

I have a program that runs in a browser - tracking my sites, but after several hours it crashes, and I want to know why, and also when the page closes I want a new window to open.

I have placed onunload in the page - but not sure if this will be called if the program crashes (ie)



 
You can't catch anything in that scenario... it's an error condition that is being handled... and by the time the browser shows the message it's already destroyed your page (ignoring any requests for onunload).

How about switching to another browser and seeing if the problem goes away? As you have mentioned before, the problem is more likely a memory leak with the browser application... it'd be interesting to support/challenge that theory by testing in another browser for a few days.

Just a thought :)
Jeff
 
Thanks - I wish I could - I am using active x - so im limited to ie6.

I need to go back to the drawing board with this one - I believe the problem lies in this code:

Code:
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("HEAD","[URL unfurl="true"]http://www.yahoo.com",true);[/URL]


xmlhttp.onreadystatechange=function(){

I think that the error is being triggered because the onreadystatechange event is not being called, making the os think that there is a problem with the browser, but I can't see how I can set a timeout loop around it. any ideas?

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top