You are here: irt.org | About | Feedback | 3860 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q1041
Sent by
Bill Wilkinson on May 14, 2002 at 18:16:27:
Worth:
Worth reading
Length:
Too short
Technical:
Not technical enough
Comments:
The author of this answer has not considered the possibility that a given server might be using some server-side methodology to supply the JavaScript source, instead of simply passing back a static file!
For example, I could ask my server to process ".js" files as if they were ".asp" files. And then the query string passed to the .js is sent to the ASP engine and could be used to deliver dynamic content (in the form of JavaScript, of course)!
In point of fact, I do this all the time. Admittedly, I don't bother to continue to use the ".js" extension. I typically do something like:
<SCRIPT Language="JavaScript" Src="getWhatever.asp?x=17&y=bananas"></SCRIPT>
But I can't see any reason that I couldn't point the .js files to the .asp processor and thus achieve dynamic results. (And, of course, this would apply to any other server side process! You could use CGI, PHP, JSP, whatever.)
Other feedback on 'irt.org FAQ Knowledge Base Q1041' - show all