Hi. I’ve been fighting a bug that seems to defy sense. I have an application that uses a jQuery call to delete data in a MySQL db.
I’ve discovered that if I place a break point on a certain line of JavaScript in Firebug (FB) and then resume execution the bug does not occur. The bug shown to me by FB is: GET http://localhost/.... In red with a ‘X’ marker. The expanded information shows what I think are a good ‘Parms’ and Request Header but a empty Response Header, nor is there any HTML tab. Why would just breaking then resuming “fix” the bug? Any help w/ this issue would be greatly appreciated. I’ve built a small set of demonstration files and the line I set the breakpoint on is: "window.location='index.php';" in the index.php file. index.php: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> <script src="jquery-1.7.1.min.js"></script> <script> function Confirm_Bug(parm1, parm2) { var r=confirm("Please Confirm!"); if (r==true) { jqCall_Bug(parm1, parm2); window.location='index.php'; } } function jqCall_NoBug(parm1, parm2){ $.getJSON("ajaxJQsever.php", // SERVER PAGE CALLED BY JQUERY { // Data sent via ajaxJQ "callingType": "NoBug", "parm1" : parm1, // target select "parm2" : parm2 } ); } function jqCall_Bug(parm1, parm2){ $.getJSON("ajaxJQsever.php", // SERVER PAGE CALLED BY JQUERY { // Data sent via ajaxJQ "callingType": "Bug", "parm1" : parm1, // target select "parm2" : parm2 } ); } </script> </head> <body> <button onclick="jqCall_NoBug('some data', 3)">NO BUG</button> <!-- call passing some daa --> <br></br> <br></br> <button onclick="Confirm_Bug('some data', 3)">BUG</button> <!-- call passing some daa --> </body> </html> ajaxJQsever.php: <?php require("../Protected/FireFoxBug.inc"); $callingType = $_GET["callingType"]; $data = array(); if ($callingType == "NoBug") { array_push($data, "I do not generate a bug"); } elseif ($callingType == "Bug") { array_push($data, "If you see this I didn't generate a bug"); } $jsonData = json_encode($data); echo $jsonData; ?> -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at https://groups.google.com/forum/#!forum/firebug
