Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
41
rated 0 times [  44] [ 3]  / answers: 1 / hits: 57812  / 13 Years ago, tue, april 26, 2011, 12:00:00

I am trying to load a JS file into my website, I have placed the file into exactly the same folder as one that does load, but firebug does not show that it has loaded, and it's effects are not visible.



Why could this be?



Here is the code to load the script



<script src=<?php bloginfo('template_url'); ?>/page-customs/js/QES_form_edits.js type=text/javascript></script>
<script src=<?php bloginfo('template_url'); ?>/page-customs/js/datepicker.js type=text/javascript charset=utf-8></script>


The first is not being loaded, the second is.



Here is the script itself:



jQuery(document).ready(function($) {

$(fieldset#keyword p.instruction).html(Search for a name or description of an activity, venue (e.g. Link Center)
or other keywords (e .g. coach));


});


Jquery is loading fine.


More From » javascript

 Answers
82

Firebug will not show a javascript file as loaded if the file will not run due to invalidation. Fix JS, fix problem.


[#92557] Sunday, April 24, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
daijac

Total Points: 568
Total Questions: 120
Total Answers: 108

Location: Virgin Islands (U.S.)
Member since Fri, May 7, 2021
3 Years ago
;