Archive for the 'Resources' Category



Web Designer’s Javascript Arsenal - Set 1

I’ll try and cut your development time in half by providing a pretty good list of the most useful Javascripts. Usually, these will all be included in all pages to create state-of-the-art websites. Loading time can be optimized by browser cache-ing if compressed versions of these files aren’t used.

Can’t Afford Adobe CS3?

Like most novice, or college students, Adobe Suite is short from ridiculously expensive… My Solution is to “Open Source” it. This is what I call “dpiNYC CS3″

Valid XHTML Conditional Commenting

It's sometimes nessasary to write conditional commenting in (X)HTML or in CSS, especially with the current browser wars. Here, i describe how to write conditional commenting enabling/diabling IE from rendering. With some witty programming you can make IE/Win work in somewhat standards.

MOD_REWRITE tips and tricks

Before you begin to use mod_rewrite (RewriteRule, RewriteBase, and RewriteCond) code, keep in mind that each rule applied is executed on each and every HTTP request that accesses a file in or below the directory where the code resides.

The best way to support Transparent PNG in IE6

There are many way to support transparent .png images in IE browsers. However, this method seems the simplest and most “transparent to work with. It uses CSS compliant JavaScript .htc files and can be easily called thought the

behavior: url(iepngfix.htc);

How to implement:

Setting up .htaccess and .htpasswd (Godaddy Hosted)

A Simple approach for a password protect folder called /private

Open notepad and start typing… (When ready to save make sure the ext .txt is not there) 

File: .htaccess

AuthUserFile /home/content/u/s/e/username/html/private/.htpasswd

AuthGroupFile /dev/null
AuthName "Secure Directory"
AuthType Basic

<limit GET POST>
require valid-user
</limit>

 

Using Stored Procedures (MySql and PHP) in 3 Steps

1. Create the database and table (test | user)

2. Create the procedure. “new_proc” (I used EMS SQL Manager 2005)

CREATE PROCEDURE `new_proc`()
    NOT DETERMINISTIC
    CONTAINS SQL
    SQL SECURITY INVOKER
    COMMENT ''
SELECT * FROM `user`; 

3. Setup your PHP code as follows:

Create a valid CSS alert/noscript message

If used properly, alert messages guide a user to make the proper descicions on your site. Let it be the purchasing of a product or the task of enabling Javascript for full functionality. The problem is that most "styled" messages cause validation errors. Alert Message

Form Field Hints with CSS and JS

Form Tooltips Using CSS and JS