Forums

  • # July 10, 2013 at 11:57 am

    Hello,

    I am wondering how I could load HTML content into a sidebar div on my website I am developing locally.

    I want to do this, so that if I need to make changes to the sidebar or other content on the site, I could just edit the external file once, and then all pages with the code would be updated. Instead of having to change each file manually.

    Codepen: http://codepen.io/npav/pen/BwoHh

    # July 10, 2013 at 12:13 pm

    Sounds like you need AJAX.

    Unfortunately, that’s not in my wheelhouse.

    # July 10, 2013 at 2:09 pm

    Does “Include” solve your problem? I have used that on a few of my sites.

    http://webdesign.about.com/od/ssi/a/aa052002a.htm

    # July 10, 2013 at 4:46 pm

    Yea, sounds like you need a simple include.

    # July 10, 2013 at 5:45 pm

    An include/require sounds good enough.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag