$.post getting "No Javascript on this page ..."

$.post getting "No Javascript on this page ..."

I am getting a "No JavaScript on this page ..." error on the following jQuery code -
  1.     <script type="text/javascript">
        // Wait until the doc structure is parsed and the browser has created the DOM tree.
        $(function() {
            // Ajax capability detecting javascript
            var xhr;
            if (window.ActiveXObject) {
                xhr = new ActiveXObject("Microsoft.XMLHTTP");
                // alert("Using Windows ActiveX for Ajax");
            }
            else if (window.XMLHttpRequest) {
                xhr = new XMLHttpRequest();
                // alert("Using generic Ajax");
            }
            else {
                throw new Error("Ajax is not supported by this browser");
            }
           
            //Make sure that there's a servlet engine backing us up
            $.ajax({
              url: '/jqia2/serverCheck',
              type: 'get',
              success: function(){ $('#content').show(); },
              error: function(){ $('#warning').show(); }
            });
           
            // Attach a submit handler to the form
               $('form#createForm').submit(function() {
                var userId = $.trim($('#userid').val());
                var pwd =  $.trim($('#usrpwd').val());
                alert("Optum UserId: " + userId + ", and password: " + pwd);
                $.post("https://myServer.com:16321/test/console/security_check", {
                    j_username: userId,
                    j_password: pwd
                });
               });
           
        });
       
        </script>







































I have verified that the jQuery JavaScript is working in the Firebug plugin for Firefox up to the $.post(). The alert pops up with the correct values as expected. But when the $.post() is executed I get the JavaScript error displayed below. I believe that I am using the correct URL for the java Servlet, and that it is syntactically correct. Can anyone tell me what could cause this to happen?

FYI: I altered the actual servlet URL to protect the innocent!