nafeeur10's avatar

Refresh page without reloading

I am building an E-commerce website. In this website, there is Sign up and Login system.

When a user will log in he will redirect to Homepage. I used

window.location = '/'

this code. But it is refreshing the whole page. Same for logout.

Please give me a suggestion. https://chaldal.com/ See this example.

0 likes
3 replies
jlrdw's avatar

First why don't you take some basic tutorials in JavaScript and Ajax or perhap jQuery Ajax.

These are basic techniques, been around for a while, and plenty of free tutorials.

Furthermore start out with a small easy example like maybe just one text field.

Please or to participate in this conversation.