Gucco Posted May 17, 2012 Share Posted May 17, 2012 Hello everyone, im make a website for my final school project. My header is a image slider made in jQuery with a time interval to change to images. At the moment when you press a link, the URL changes (example: index.php?page=contact). Then I use the $_GET to know what html file needs to be included, for this example: contact.html. The problem is when the URL changes (after clicking a link), the page refreshes and my jQuery header also refreshes to image[0]. Is there a way to include the right content when clicking on a link, without refreshing the page/header? Thanks in advance Gucco. Quote Link to comment https://forums.phpfreaks.com/topic/262664-include-jquery/ Share on other sites More sharing options...
trq Posted May 17, 2012 Share Posted May 17, 2012 Clicking a link makes a new request to the web server. Thats how the web works. If you want to change content without refreshing the entire page you will need to use Ajax. Quote Link to comment https://forums.phpfreaks.com/topic/262664-include-jquery/#findComment-1346294 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.