Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2013
    Posts
    1
    Thanks
    0
    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?

    www.trojanhouserecords.com

    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.

    Thanks,

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 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'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •