Hi there. I've been wandering how to include javascript into a page via a url query! how do I do it
I'll need to know the content-type for including JS if i was to use a header().
Help would be appreciated. Thx.
remember that the javascript is run on the client and php queries are run on the server. You have to separate the two - javascript is just text when viewed from the server.
Could you explain what you are trying to do a bit more?
Huh? You're sending a dynamically generated javascript file to the browser that it requested after seeing it in a link tag? The MIME type for that is text/javascript. Header: "Content-Type: text/javascript".