[jQuery] Re: Showing Ajax response when not empty

2009-03-17 Thread Brendan
Thank you, I wasn't sure whether or not to use $.load or $.ajax... load seemed easier, but I guess I discovered it was inconsistent. I modified my code to work with $.ajax On Mar 17, 3:01 pm, James wrote: > Don't use $.load. Use $.ajax (or $.get or $.post). > > $("#userlogin", "#container").eve

[jQuery] Re: Showing Ajax response when not empty

2009-03-17 Thread Cam Spiers
Also in the options you should add cache: false On Wed, Mar 18, 2009 at 8:01 AM, James wrote: > > Don't use $.load. Use $.ajax (or $.get or $.post). > > $("#userlogin", "#container").everyTime(7500,function() { > $.ajax({ > url: '/ajax/userlogin', > type: 'POST', >

[jQuery] Re: Showing Ajax response when not empty

2009-03-17 Thread James
Don't use $.load. Use $.ajax (or $.get or $.post). $("#userlogin", "#container").everyTime(7500,function() { $.ajax({ url: '/ajax/userlogin', type: 'POST', dataType: 'html', success: function(data) { if (data) { $(thi

[jQuery] Re: Showing Ajax response when not empty

2009-03-17 Thread James
Don't use $.load. Use $.ajax (or $.get or $.post). $("#userlogin", "#container").everyTime(7500,function() { $.ajax({ url: '/ajax/userlogin', type: 'POST', dataType: 'html', success: function(data) { if (data) { $(thi