How To See Your Hidden Content In Dreamweaver

Here’s a simple little trick to allow you to see your hidden content on your web pages from your WYSIWYG editor.

Read the rest or post a comment »

Include JavaScript Files with JavaScript

As always, I’m constantly looking for ways to speed up my coding, to keep files scalable and manageable. Here’s a tip that will let you `import` your external JavaScript files much like you would `import` your external CSS files (, but that’s different post.)

No, we can’t literally import our JavaScript like CSS, but the concept is the same. We can link to one JavaScript file and have it include additional JavaScript files for us, and here’s how we do that.

Read the rest or post a comment »

Walter Zorn’s ToolTip with a JQuery Twist

If you’ve ever done a search on Google for “javascript tooltip“, you’ve probably come across Walter Zorn’s DHTML JavaScript Tooltips.  As I write this Walter’s web site comes up as the first result out of 1,490,000.  I don’t know Walter, and I doubt I’ll ever have the chance to actually meet him, but if you’re looking for a JavaScript tooltip, his script is the one to use.

Now for those of you saying, “I want one that works with JQuery!”, hold your horses.  No, Walter’s script isn’t a nifty little JQuery plugin, but that’s the best part, it doesn’t have to be.  The WZ Tooltip script can be used with or with out JQuery, and it works the same and just as good under either circumstance.   I know you’re saying stop rambling and tell me how to use it with JQuery….

Read the rest or post a comment »

JQuery JavaScript Library

Before I learned PHP, I used JavaScript a lot, and after learning PHP, I eased up on using JavaScript due to the amount of time it took for me to integrate the PHP output with the JavaScript.  As a result my web applications functioned, but without any flair.  Despite the dynamics added by PHP, they were still very much `static` in appearance.  JQuery however, has revived my use of JavaScript, and has lived up to it’s promise of `Write Less, Do Nore`.

Read the rest or post a comment »

Process Your PHP Form POSTs Faster.

The Scenario:

You setup a contact form for people to send you email.  When the form is submitted, you want to assign each of the POST, GET or REQUEST values to a variable with the same name as the key. (You could do this for a number of reasons, but that’s a different topic.)

The Problem:

Ugh! Doing this can be really time consuming, especially if you have a really long form.  Presonally, I would just use the array element vs. setting creating a new variable, but if you must, I suggest using a foreach() loop to create the variables for you.

The Solution:

Read the rest or post a comment »

The Power of CSS For Design

By trade I’m not a designer, I’m a programmer. There is a definite dichotomy between programming and design, however, the design layout still needs to be coded in a logical manner to make it scalable for easier maintenance in the future. Simply put, the more complex the design, the more time and care needs to be put into the planning of the design, but it doesn’t mean that the code has to be more complicated especially if you want to get netflix australia.

Read the rest or post a comment » and TinyMCE Incompatibility Solution

I found that when I tried to use and TinyMCE together, that I lost 1 functionality of one of the two scripts on Firefox. The solution I found was

Read the rest or post a comment »

Working With A PHP Configuration File

TRUE or FALSE: “It’s easier to update one file or 10 files.” This statement is True.

The concept of a configuration file is that it stores data in one location that any other file on the web site can access. The data that is stored in a configuration file can be unlimited, but usually contains data such as by not limited to the following:

  • MySQL Database, Username and Password
  • Document Root Folder
  • To use Cookies or Sessions
  • Set time limit for Sessions
  • Custom variables for web applications
  • and etc.

Read the rest or post a comment »

Use As Many PHP Files As You Need

I’m working with a friend – helping him with some dynamic coding – on a web site. The web site was put together by a different webmaster and it functions. The clients needs have changed over time, and changes are need to the site to comply with a few legal things (it deals with housing.) As I begin looking at the PHP code, I can tell the person who programmed it was very intelligent, but fell prey to some of the things that irritate me, and create problems when trying to update the code as I’m doing now.

First, they didn’t comment any of their PHP code, second they did make use of arrays, but did a poor job of it, and they posted all of the forms back to themselves, which brings me to the point of this post. Use more than one file if you have to, and don’t be afraid to do so. Here’s the problem with posting a form back to itself.

Read the rest or post a comment »

Commenting Your PHP Code

About two years ago I started working for a local web firm. It was small, at that time there we’re only 3 of us, and I was the only PHP developer on staff. We had one client who used our services, combined with another web vendor. Normally we just spit out regular static HTML pages for them, until one day something happened, and we were passed a job that required editing some PHP code from the other vendor.

I honestly don’t remember who the client was, or what the PHP that I was editing was used for, all I remember is that it was the worst code I had ever come into contact with. Nothing made sense, the coding method was random, nothing was optimized, and I wanted to re-write the whole thing and start over. Time did not permit a total re-write, so I was stuck editing the nasty code that was before me. So as I made my edits, I started commenting the code, it went something like this…

Read the rest or post a comment »