Code seems to stop working at the AJAX call
I have a the below function that should send an AJAX request to
nuke_authorize.php,however: there's absolutely no sign of the call being sent. Because if the page is ever loaded/request, it writes something in a text file. However, there's absolutely no text file being created/wrote to.
- function verifyLaunch(code1, code2, code3, code4){
- window.clearInterval(interval);
- var panel = $('#panel');
- var panel_content = panel.html();
-
- panel.html('<h3><b>Authorizing codes...</b></h3>');
-
- $.ajax({
- url: 'nuke_authorize.php',
- type: 'POST',
- data: {code1:code1, code2:code2, code3:code3, code4:code4}
- }).done(function(m){
- if(m == 'true'){
- if(confirm('Sir, are you sure you wish to authorize this launch?')){
- interval = null;
- authorizeLaunch(code1, code2, code3, code4);
- }
- }else{
- panel.html('<h3><font color="red"><b>A U T H O R I Z A T I O N F A I L U R E</b></font></h3>');
- setTimeout(function(){
- panel.html(panel_content);
- }, 3500);
- }
- });
- }