httpd.conf (or equivalent)
# Cache js and CSS files for 6 months - with a timestamp
<FilesMatch "\.(js|css)$">
ExpiresActive On
ExpiresDefault "access plus 6 months"
Header set Cache-Control "max-age=15552000"
RewriteEngine On
R… more »
Great New Web Resource
CoderZone.org launched recently.
It's great new resource for web people, from 'n00bs' to 'w00ts'. What makes it special:
A great team of moderators. These guys are experienced and know the web.
A library of code snippets, little bits of code t… more »
Wicked Good Gallery - Lightweight LAMP, Easy to Administer
The Wicked Good Gallery grew from an idea mentioned at http://w3schools.com/forum and discussions with the people at http://lilyclaireart.com.
The challenge was to build a gallery application that would allow site visitors to view and purchase artwork… more »
Psuedo 'Slide Show' - Displaying and Hiding divs
This is a nice example of the setInterval function of javascript.
Key features:
Divs can be added without modifying the code
Div naming scheme (div#) reduces collisions with other page content
setInterval drives the process
Tested with IE7 and… more »
Debugging AJAX
Use the transport mechanism to send debug information. For example, if you're sending back an array of data, add a new element (or several), and put in the SQL query so you can see exactly what's being executed.
Store the returned data in global variab… more »
:: Next >>