[jQuery] JQuery Form Plugin is Broken

[jQuery] JQuery Form Plugin is Broken


I have just tried to install the Jquery Form plugin on a test page...
I can't get it to work, at all, period, in any shape or form. I have
been trying for the last 4 hours (yay me).
I ahve followed all the documentation to the letter, the following
code does NOT work, the Jquery Form Plugin is not picking up on the
fact that the form is submitting. None of the functions are being
called, save document.ready
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" media="screen" href="/style/
adminstyle.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/style/
thickbox.css" />
<script language="JavaScript" src="/js/jquery-1.2.3.min.js"
type="text/javascript"></script>
<script language="JavaScript" src="/js/jquery.form.js" type="text/
javascript"></script>
<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
$(".success").hide();
var options = {
target: '.success', // target element(s) to be
updated with server response
beforeSubmit: showRequest,
success: showResponse, // post-submit callback
dataType: script // 'xml', 'script', or
'json' (expected server response type)
};
$("#testform").ajaxForm(options);
});
// post-submit callback
function showResponse(responseText, statusText) {
alert('status: ' + statusText + '\n\nresponseText: \n' +
responseText +
'\n\nThe output div should have already been updated with
the responseText.');
}
function showRequest(formData, jqForm, options) {
alert('About to submit: \n\n');
return true;
}
</script>
</head>
<body>
<form id="testform" action="#" method="POST">
<input type="text" id="title" name="title" value="" class="title"
style="width: 400px" maxlength="255"/>
<input type="text" id="author" name="author" value="<?=$session-