[jQuery] Re: How do I update my control after I submit data to my database?

2008-09-13 Thread Josh Nathanson
IL PROTECTED]> To: "jQuery (English)" Sent: Friday, September 12, 2008 3:29 PM Subject: [jQuery] Re: How do I update my control after I submit data to my database? Thank you. I don't think it will be json though. What if it is not json? On Sep 12, 6:14 pm, "Josh Nathanson&

[jQuery] Re: How do I update my control after I submit data to my database?

2008-09-13 Thread jmDesktop
Thank you. I don't think it will be json though. What if it is not json? On Sep 12, 6:14 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > You would do this in the callback function from the ajax call.  One way > might be to have an empty div available on your page: > > > Then the ajax callbac

[jQuery] Re: How do I update my control after I submit data to my database?

2008-09-12 Thread Josh Nathanson
You would do this in the callback function from the ajax call. One way might be to have an empty div available on your page: Then the ajax callback, assuming you are returning json data: function( data ) { $("#username").text( data.username ); } -- Josh - Original Message - Fr