"Smoke" <sm***@xatrium.com> writes:
We had a javascript calling a Cold Fusion page (.cfm) and it was working for
2 years. Suddenly yesterday or today its decided it doesn't want to work
anymore.
Well, *something* must have changed on the computer. Unless the
offending page code has a time bomb included, you must have changed
either the operating system, the Cold Fusion version, the web serve,
or some library that something depends on.
I'm picking up somebody elses code I don't know all of the rules
here.
Ah. Debugging somebody else's code. Always ... interesting.
All of the examples I've found really want .JS files if called with a script
tag, example below.
<script src="http://www.website.com/javascripts/xxx.js">
This is illegal HTML 4. The "type" attribute is required on script
tags. Add type="text/javascript"
</script>
Question - is this a hard rule or can you call a file with any extention?
That depends on the browser. Technically, there shouldn't be any
restrictions on the name of the file, or on the URL at all (e.g.
"http://www.example.com/foo/" should be legal). You specify the
type of the file in the type attribute and it is given by the server,
so the extension is not important.
However, some browsers, in some cases, try to second guess the type of
file using the extension. The *safest* is to use a recognizable extension
that doesn't match some other type of file.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'