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: > <div id="username"></div> > > Then the ajax callback, assuming you are returning json data: > function( data ) { $("#username").text( data.username ); } > > -- Josh > > > > ----- Original Message ----- > From: "jmDesktop" <[EMAIL PROTECTED]> > To: "jQuery (English)" <jquery-en@googlegroups.com> > Sent: Friday, September 12, 2008 2:48 PM > Subject: [jQuery] How do I update my control after I submit data to my > > database? > > > If I use jQuery .ajax to submit to my myUpdate.php file, after I do > > that, how do I then update my control that I submitted the information > > to update in the first place? > > > For example, I have username textbox on a form, and I submit that > > username to a database. I then have a div or label that needs to show > > that newly submitted username if it is submitted to teh database > > correctly. > > > I know how to submit the context of the textbox "username" to the > > database (.ajax,etc.), but not how to refresh that part of the page to > > show the database content. > > > Thank you for any links or help.- Hide quoted text - > > - Show quoted text -