View Full Version : Javascript call file help needed


melaniejk
05-31-2007, 10:38 AM
Hi.
Instead of copy and pasting the same links on many pages someone suggested that I call a javascript file. But, I can't get it to work. I'm not sure what I'm doing wrong. I copied the same way they did it.

On this page:
http://www.countycourthouse.us/AL/baldwincounty.html

I put:
<!-- AL Ancestry -->
<script language="JavaScript" src="http://www.countycourthouse.us/AL/ancestry-al.js">
</script>

But, it doesn't show up at all.


I'd really appreciate your help. Thank you.

dilligaf
05-31-2007, 01:31 PM
<script type='text/javascript' src='http://www.countycourthouse.us/AL/ancestry-al.js'></script>

Then make sure that you're external file is just the script and not <script></script>

melaniejk
05-31-2007, 06:11 PM
Ok, I changed the line to what you suggested. And, there is no <script></script> in the external file. But, it still doesn't show up. :confused:

dilligaf
06-01-2007, 07:48 AM
The only other possibilities that come to mind are the location/name/path to the file or an error in the script itself.

I'm assuming that you've used the script in it's entirety on your page and you've just copied the text (between the script tags) and saved it to a text file named ancestry-al.js within the AL directory.

If so, I'm stumped. What does the script do?

melaniejk
06-01-2007, 07:26 PM
Ok, it's fixed now. Apparently, it had to do with a line break.

dilligaf
06-02-2007, 06:59 AM
Glad you got it sorted and congrats on the success of your site!