Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8129755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:25:38+00:00 2026-06-06T08:25:38+00:00

This is a file stored locally, not on a server, so Server Side Includes

  • 0

This is a file stored locally, not on a server, so Server Side Includes do not work.

Problem:

I have an HTML file. There is lots of data in it, I want to split it into smaller parts, and then just include them all into my big html file, i.e. something like:

main.html
  <include "partA.html">
  <include "partB.html">
  <include "partC.html">

And I want the result as if the contents of partA,B,C.html were read right into main.html

Now, this is not on a server — it’s stored locally, so I can’t do SSI. My question is:

Is there some simple way to do this via JavaScript? It seems like with JavaScript, I shoudl be able to:

  • fetch the contents of blah.html [not sure how to do this ste[
  • call a document.write on it, to write it into the document
  • probably handle some stuff dealing with escaping strings

Question:

How do I do this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:25:39+00:00Added an answer on June 6, 2026 at 8:25 am

    It’s not possible, as a security feature. This post here is a discussion on the topic – Includes without local server?. As the answers say, your best best is to install a small web server on the machine if you can. They’re not too hard to get going.

    I have used nginx before with good results. http://en.wikipedia.org/wiki/Nginx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to loop through this external JSON file(locally stored), but I cannot
I have written an Excel VBA macro which imports data from a HTML file
I have used this code to store Object to a file: try{ FileOutputStream saveFile=new
Using this file as source, I have a situation where I need to retrieve
I have this file file.txt which I want to split into many smaller ones.
I have this file structure: folderIWantStuffIn/ - old_stuff Now I want to add some
I have this file which I need to read the first bytes to check
We have an application which stores its data in SQL Server. Each table has
I have been trying to use the UISaveVideoAtPathToSavedPhotosAlbum to save my video (stored locally
I'm writing an application with Qt that uses QTextBrowser to display some locally-stored HTML.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.