bruce080 Posted September 25, 2009 Share Posted September 25, 2009 Is there a way to verify that an Alert() happened? Quote Link to comment Share on other sites More sharing options...
.josh Posted September 27, 2009 Share Posted September 27, 2009 in javascript, or knowing on the server that it happened? Either way.. if instead of directly calling the alert, you call a function instead, and in the function you set some value to true (as opposed to false), and 'THEN trigger the alert, you can easily verify within javascript that it happened. If you're looking for the server to know...you cannot absolutely verify this. . you can create a function that sends info to some script via ajax that it happened, and then calls the alert, instead of directly calling the alert. You can then after X amount of time has past, assume that it didn't happen, but that's not 100% guaranteed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.