I have a PHP code snippet:
if (!($result = mysql_query($query, $link))) { die("Invalid SQL query: " . $query); }
And I have a jQuery code snippet:
$.ajax({ url: "....search.php", data: ..., async: false, //to trigger error alert success: function(xml) { ... }, error: function(xml) { foundError = true; }, dataType: "xml" }); if(foundError) { setProgress("Could not complete the search because an error was found", ProgressBar.ERROR); }
Is it possible for a jQuery call invocation function call to invoke a call? If not, how would I call it otherwise?
source share