Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-28 00:26:12

ptyrrell
New Member
Registered: 2006-12-03
Posts: 3
Website

Javascript doesn't seem to load on certain pages

Hi everyone—

I’m running TXP 4.0.3 and running into a bug. I have a javascript loading on every page template, but when I access permanent links to articles, the javascript doesn’t seem to load in the template.

Has anyone else run into this problem? I could really use some help.

Thanks,
Patrick

Offline

#2 2007-05-15 05:21:02

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Javascript doesn't seem to load on certain pages

Change

<script type="text/javascript" src="reviews.js"></script>

to

<script type="text/javascript" src="/reviews.js"></script>

Last edited by variaas (2007-05-15 05:21:52)

Offline

#3 2007-05-15 07:05:14

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Javascript doesn't seem to load on certain pages

Or alternately:

<script type="text/javascript" src="<txp:site_url />reviews.js"></script>

Offline

#4 2007-05-15 23:58:47

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Javascript doesn't seem to load on certain pages

Relative URLs are explained in the FAQ.


Alex

Offline

Board footer

Powered by FluxBB