Simple AJAX Not Working - RESOLVED

Simple AJAX Not Working - RESOLVED

Well, here I am again. I cannot get Ajax to work. Firefox debugger shows through the function sometimes but sometimes not. I have been making changes so who knows what I have messed up.

The idea is to click on an icon and have the icon send a code to another PHP script. The other script is never called even when the the debugger hows going through the function and going over Ajax. I simplified the code and tried it and it goes through the process of the sendmmnav function and has the correct code.

Where am I going wrong this time? As always, all help appreciated.

Mike



<html><head></head><body>
<script src="jquery.js"></script>
<script src="jquery-ui.js"></script>
<script>
function sendmmnav(code) {
     menu = [code];
     $.ajax({
      type: "POST",
      url: "mmnav.php",
      data: { menu },
      cache: false,
      //success: function() {

      //}
    });
     return false;
}
</script>
<center><form action="mmnav.php" method="post"><table border="0" width="25%">
<?php
echo "<tr><td>";
echo "<img src='pictures/appointment.png' alt='Appointments' onClick='sendmmnav(1);return false;'>";
echo "</td></tr>";
echo "<tr><td>";
echo "<img src='pictures/search.png' alt='Search' onClick='sendmmnav(33);return false;'>";
?>