[jQuery] Re: on form submission, how to decide "on submit: return true / false"

2008-02-21 Thread Mahdi Pedram
HI there, This is the Code which You need , have fun Var Mydata{ Username: $('#username').val(), Password: $('#password').val() } $.ajax({ url:

[jQuery] Re: on form submission, how to decide "on submit: return true / false"

2008-02-15 Thread andrea varnier
On 15 Feb, 06:20, freech <[EMAIL PROTECTED]> wrote: > 1. I handle the check.php file like: > if (!isset($_POST['username'])) echo "please input a username"; > ... if $username already exists, echo "the name you try to register is > already taken"; I think you could insert in your document a wit

[jQuery] Re: on form submission, how to decide "on submit: return true / false"

2008-02-15 Thread freech
Hi Andrea, Thank you, you got my flow right and the explanation is very clear, so I should put all the actions rely on those data into the callback function of $.post. for e.g. $.post('check.php', {username: $('#username').val(),password: $ ('#password').val()}, function(data)

[jQuery] Re: on form submission, how to decide "on submit: return true / false"

2008-02-14 Thread andrea varnier
On 14 Feb, 15:57, freech <[EMAIL PROTECTED]> wrote: > //I have problem on here: > if ( !$(".sdComt").response ) { return false; } else { return > true; } ok, if I got it right, you're using a $.post call to check if the user's input is correct or somehow acceptable, and then you app