It is not very clear what you are trying to achieve. Apache doesn't "run code" as such.
Are you saying that when a browser makes a request for a .js or .css file, you want something to happen before the HTTP server delivers the content? What do you want to happen, and where is it intended to take place (on the server or on the client) ?
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter
Sent: 27 February 2013 21:25
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] customize apache serving of css file
Is it possible for the apache server to be configed so that code runs before a .css or .js file is served to the browser?
For example, before a .js or .css file is served, run code that redirects to another file. Or maybe you have some non standard code in a .js file that is intended to make the javascript more functional and needs to be translated to actual javascript at the time the .js file is served to the browser.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.
--------------------------------------------------------------------------------
CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
As an Amazon Associate we earn from qualifying purchases.