Re: [jQuery] ajax login

2006-10-09 Thread SDisk SDisk
2006/10/9, TJ <[EMAIL PROTECTED]>:     $.post('process.php', {username: myusername, name: mypassword});element.value = '';return false;});Umm, are you sure  that is the correct  post function params?? I think that it is some as: //

Re: [jQuery] ajax login

2006-10-09 Thread Matthias Schroeder
On Sun, 8 Oct 2006 22:12:17 -0400 TJ <[EMAIL PROTECTED]> wrote: > > I have updated to this with the return false. I am still getting the same > error. > > Any suggestions? > can you send a link to that page? Your code is working for me (calling register php and browser stays on old location)

Re: [jQuery] Ajax login

2006-10-08 Thread Matt Stith
try: ... .submit(function(e) { e.preventDefault(); ... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] ajax login

2006-10-08 Thread TJ
I have updated to this with the return false. I am still getting the same error. Any suggestions? Thanks! $(document).ready(function(){ $('form').submit(function(){ element = $('[EMAIL PROTECTED]').get(0); myusername = element.value; my

Re: [jQuery] Ajax login

2006-10-08 Thread Stephen Woodbridge
You are getting a js error. You have too many: '});' for the opens, because you have one at the end of the success: line. -Steve TJ wrote: > I added the login, sorry about that > When I execute I get the vars in the address bar > http://www.tjshafer.com/baintown/main.php?user=test&pass=test&subl

Re: [jQuery] Ajax login

2006-10-08 Thread Ⓙⓐⓚⓔ
when you override submit with js , you have to return false, or it gets submitted the old fashioned way! On 10/8/06, TJ <[EMAIL PROTECTED]> wrote: > > I added the login, sorry about that > When I execute I get the vars in the address bar > http://www.tjshafer.com/baintown/main.php?user=test&pass=

[jQuery] Ajax login

2006-10-08 Thread TJ
I added the login, sorry about that When I execute I get the vars in the address bar http://www.tjshafer.com/baintown/main.php?user=test&pass=test&sublogin=1 $(document).ready(function(){ $('form').submit(function(){ $.ajax({ url: "process.

Re: [jQuery] Ajax login

2006-10-08 Thread Matt Stith
i prolly shoulda looked at the code harder, thats probly your problem... On 10/8/06, Blair McKenzie <[EMAIL PROTECTED]> wrote: > I don't see any element with the id 'login'. > > On 10/9/06, TJ <[EMAIL PROTECTED]> wrote: > > > > > > Hi I am really having trouble using ajax function to make a login

Re: [jQuery] Ajax login

2006-10-08 Thread Blair McKenzie
I don't see any element with the id 'login'.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?
$(document).ready(function(){
$('form').submit(function(){
$.ajax({

[jQuery] Ajax login

2006-10-08 Thread TJ
Hi I am really having trouble using ajax function to make a login form. Here is what I have so far. Any ideas? $(document).ready(function(){ $('form').submit(function(){ $.ajax({ url: "process.php", type: "POST",