Im making an ajax site, and I have an login form on the front page, when the user enters their information I don't want the page to refresh but they should get a confirmation message. Does anyone have any example code for this?

Thanks in advance.