[jQuery] Complete frustration

[jQuery] Complete frustration


Ok, all Im trying to do is a simple jquery post. Here is the code.
<script type="text/javascript">
function SubmitForm(method)
{
var login = document.form.login.value;
var password = document.form.password.value;
try {
$.post("../../content/jaxrep.php", { login: login,password:
password,method: method});
} catch(e) {
alert(e);
}
return false
}
</script>
But it always fails at a line in jquery with the following code...
// Send the data
        try {
            xhr.send(s.data);
        } catch(e) {
            jQuery.handleError(s, xhr, null, e);
        }
If I use different versions of jquery I get a different line number
for the error but it is always the same code.
I have another page on the server which uses the same function yet it
is fine, damned if I can see what the difference is. Anyone have any
good methods to find out what is going wrong?
Cheers