javascript - $("header").load('header.html') not loading -


i tried looking answer simple question. tried use answers posted still errors , header not being shown.

i have code snippet :

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script type="text/javascript">     $(document).ready(function(){         $('#header').load('partial/header.html');      }); </script> 

and html body have div :

<div id='header'></div> 

i getting error cannot load file "partial/header.html" message "cross origin requests supported protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource."

any welcome

are sure? build new page of "header.html", copy code, can page , add div of "header".


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -