On 10/9/06, TJ <[EMAIL PROTECTED]> wrote:
Hi I am really having trouble using ajax function to make a login form. Here is what I have so far.
Any ideas?
<script type="text/_javascript_" language="_javascript_">
$(document).ready(function(){
$('form').submit(function(){
$.ajax({
url: "process.php",
type: "POST",
data: $.param( $("#login").formdata()),
success: function(msg){ alert( "Logged in: " + msg ); } });
});
});
});
</script>
<form >
Username:<input type="text" name="user" maxlength="30">
<br/> Password:<input type="password" name="pass" maxlength="30">
<input type="submit" value="Login">
</form>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/