PDA

View Full Version : external javascript on the secure server


WayneK
09-23-2002, 10:10 PM
Whilst attempting to beautify and simplify some code I have run into this "problem"

I cannot seem to include an external javascript file

From and included php file:
print <<< ending
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<script src="reid.js" type="text/javascript" language="Javascript"></script>
<link rel="stylesheet" href="reid.css" type="text/css">
</head>
ending;

This same code works fine outside of the secure folder.

If I put the code directly into the included file it comes out mangled in the page.

I have found the only way to use the code is to leave php, print the code and re-enter php.

Am I missing something?

sheila
09-23-2002, 10:48 PM
Wayne,

In order for the web pages from your secure server to be certified by your certificate, all code, images, etc... must be served from within your sercure server area. Any images or code that are included from outside the secure area on your account will invalidate your certificates guarantee of security.

WayneK
09-24-2002, 07:13 AM
Sorry about this folks.

After scratching my head and figuring it was something in my php code it turned out to be a simple html mistake.

--