zurb foundation - ReferenceError: $ is not defined - jQuery not working on my computer -


i'm using foundation build basic site, i'm stuck in problem that's kind of weird... don't seem able load jquery not in chrome nor in firefox (i tried no others).

what hints me jquery doesn't load error message :

error: referenceerror: $ not defined

i'm calling function foundation @ end of template :

  <script>     $(document).foundation();   </script> 

but before that, right after footer (before other .js) :

  <script>       document.write('<script src="/js/vendor/'         + ('__proto__' in {} ? 'zepto' : 'jquery')         + '.js"><\/script>');   </script> 

this call jquery or zepto. fear function might not working (i'm no javascript expert...) pluged :

  <script src="http://code.jquery.com/jquery-latest.js"></script> 

to code , other variations... nothing seems work.

furthermore, use bootstrap in other project , noticed small details tooltips , other stuff work, not correct design. i'm not sure it's unrelated jquery...

i know it's kind of weird assumption, possible computer not working jquery? i'm led believe because pieces of code write in computer don't work here (like bootstrap tooltips) work in friend's computer.

the complete code isn't working :

  <!-- end header , nav -->    <script src="http://code.jquery.com/jquery-latest.js"></script>  <!--   <script>       document.write('<script src="/foundation_custom/js/vendor/'         + ('__proto__' in {} ? 'zepto' : 'jquery')         + '.js"><\/script>');   </script> -->  <!--  <script src="/foundation_custom/js/foundation.min.js"></script>-->      <script src="/foundation_custom/js/foundation/foundation.js"></script>    <script src="/foundation_custom/js/foundation/foundation.alerts.js"></script>    <script src="/foundation_custom/js/foundation/foundation.clearing.js"></script>    <script src="/foundation_custom/js/foundation/foundation.cookie.js"></script>    <script src="/foundation_custom/js/foundation/foundation.dropdown.js"></script>    <script src="/foundation_custom/js/foundation/foundation.forms.js"></script>    <script src="/foundation_custom/js/foundation/foundation.joyride.js"></script>    <script src="/foundation_custom/js/foundation/foundation.magellan.js"></script>    <script src="/foundation_custom/js/foundation/foundation.orbit.js"></script>    <script src="/foundation_custom/js/foundation/foundation.placeholder.js"></script>    <script src="/foundation_custom/js/foundation/foundation.reveal.js"></script>    <script src="/foundation_custom/js/foundation/foundation.section.js"></script>    <script src="/foundation_custom/js/foundation/foundation.tooltips.js"></script>    <script src="/foundation_custom/js/foundation/foundation.topbar.js"></script>      <script>     $(document).foundation();   </script>  </body> </html> 

check whether jquery library loading. depending on browser settings, if you're loading computer, locally, browsers block scripts remote sources.

you can have @ console check that.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -