Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-11-2013, 04:34 AM #1
- Join Date
- Sep 2013
- Thanked 0 Times in 0 Posts
2 php pages together make up home page - need top panel not to reload when linking
Hey guys, I have recently had a site built for my small record label business.
The designer in charge hasn't got any time to work on this for me, so I was looking to get some answers here.
My home page is made up of two .php pages working together - title.php (for the top panel - button bar/carousel/soundcloud player etc...) and main.php for the content.
When clicking through out the site both pages reload, and this interrupts where the soundcloud player is at and becomes very annoying quickly.
Is it possible to code or setup for the title.php to remain static only only have the main.php section load when a link is clicked within the site?
Any ideas would be greatly appreciated. Please note Iam a novice when it comes to coding but if it can be done I will approach a developer that can complete this for me.
09-11-2013, 02:19 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,668 Times in 2,637 Posts
Yes it is, but that's not done with PHP. You need a client language to perform seamless interaction; PHP is a server side language and doesn't retain communication once the request is complete and response sent.
You need to use ajax to do what you want to do.PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');