Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Rethinking Dynamic Page Replacing Content

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44658
    broecher
    Member

    Hopefully this is a simple question…

    I am trying to use the demo files that came in a past post on this website https://css-tricks.com/rethinking-dynamic-page-replacing-content/

    When I view the demo hosted on css-tricks http://sudojesse.github.io/dynamic-page/index.html
    I can click on the nav buttons and only the content reloads, not the whole page.

    But when I put files in my dropbox for testing https://dl.dropboxusercontent.com/u/28058427/www/dynamic-page-master/index.html
    It reloads the whole page.

    I am just a beginner at web design so I don’t understand what needs to be done. I notice there is one little php reference in the code

    and I dont have php in dropbox of course. Could this be the problem? I don’t see what the php line does, it doesn’t seem like it does anything to me.

    #134752
    DrCLue
    Member

    Well, the name of the PHP “header”, would suggest that some contents at the beginning of the page were expected to arrive via it’s output and may very well be missing from the output for not having been run through PHP’s parser.

    You might want to look and see if you have that PHP file in the collection of materials you got, and it would not hurt to pop it into your text editor as often PHP files while typically for programming (I do a lot of PHP coding) , can be used for simply to add some little twiddle to what otherwise is largely plain old web content.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.