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) if i

[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? script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ $.ajax({ url:

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?script type=text/_javascript_ language=_javascript_$(document).ready(function(){

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 form. Here

[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=testpass=testsublogin=1 script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ $.ajax({

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

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

[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! script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ element = $('[EMAIL PROTECTED]').get(0);

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/