JavaScript header - what does it look like.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gsb

    JavaScript header - what does it look like.

    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



  • Alvaro G Vicario

    #2
    Re: JavaScript header - what does it look like.

    *** gsb wrote/escribió (Wed, 10 Dec 2003 20:53:46 -0800):[color=blue]
    > That is, for example, passing flash I would use: header("Content-type:
    > application/swf");[/color]

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

    Hope this helps.

    --
    --
    -- Álvaro G. Vicario - Burgos, Spain
    --

    Comment

    Working...