Forum Moderators: coopster

Message Too Old, No Replies

Reasons JS in an include file would fail

Can't think of why.

         

JuniorOptimizer

11:22 pm on Oct 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I put a small JavaScript in a file and included it in my PHP pages. It doesn't run.

I can't for the life of me think of why.

jatar_k

11:35 pm on Oct 31, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Take a look at the actual source from the browser to see if any parts are missing.

JuniorOptimizer

10:53 am on Nov 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, it's all there. It was just a simple copy and paste of working code from the main file to an include file.

amznVibe

12:17 pm on Nov 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dumb question but since you are not doing an external javascript link and using PHP instead, you are putting your code between <script></script> right?