[thelist] External Javascript files + PHP
Arthur Noel
adn at clara.net
Thu Oct 25 11:48:50 CDT 2001
> >Based on your problem, I think you need to add a
> Content-Type header so that
> >the browser respects it as a .js file.
> >
> ><? Header('Content-Type: text/javascript')?> should do it.
>
> Funny thing is that this sensible suggestion just makes things worse.
I think that's cos it should be application/x-javascript not
text/javascript, at least that's what Apache comes with by default.
Cheers,
Arthur
More information about the thelist
mailing list