Ready to get started?Download WordPress


Localhost won't call local external JS files (2 posts)

  1. kewalter
    Posted 4 years ago #

    I'm running 3.0 RC2 on a localhost. I can't call any external javascript files. If I try the whole script tag disappears in the output. Hosted external files will work fine.

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    Outputs blank:
    <script type="text/javascript" src="js/jquery.infieldlabel.min.js"></script>

    Any ideas?

  2. Assuming the js folder is in the same parent directory as your theme you call it like this:

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.infieldlabel.min.js"></script>

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.