Hi,

I am just trying to have a login form on a page using div tags. After successful login without refreshing the page, the textboxes on the form should be replaced by Welcome message or displaying username and Logout button.

Can somebody throw a little light to show me the way?

Thanks in advance.

Kiran

To do this without refreshing the page, you need to use :

  • AJAX to make a request to the server and to receive a response.
  • DOM scripting in the "success" response handler to change what is displayed

That should point you in the right direction without adding to a mountain of info on the web about AJAX and DOM scripting.

Suggest you do some background reading and post again when you need help with specific aspects of your code.

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.