By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,725 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

JavaScript header - what does it look like.

P: n/a
gsb
I need to link one of several JavaScript files into an application.
I'm using php to pick the file and "pass it thru" (passthru) based on
http_get_vars.

What is the header I need to send?

That is, for example, passing flash I would use: header("Content-type:
application/swf");

thanks gsb

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
*** gsb wrote/escribió (Wed, 10 Dec 2003 20:53:46 -0800):
That is, for example, passing flash I would use: header("Content-type:
application/swf");


# grep js /etc/mime.types
application/x-javascript js

Hope this helps.

--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.