Saturday, February 12, 2005

Email Links, CC's and BCC's

To use multiple E-mail addresses separate the emails with a semicolon:
e.g. a href=";"

To add a subject:
e.g. a href=" blah blah"

To add some body text:
e.g. a href=" blah blah..."

To carbon copy somebody (CC):
e.g. a href=""

To blind carbon copy somebody (BCC):
e.g. a href=""

You can also use a multiple of these functions by separating them with an ampersand (&)
e.g. a href=" blah blah&"

Now that I've explained how to do this, I'm going to tell you not to do it.

There are a couple of things wrong with this method. First, it requires anyone who wants to contact you to fire up their email client. This is an undue burden on your users and it takes time to load the software on their end or configure it if it is not already properly set up.

Second, it's a spammers dream come true. Anytime you put an email address in a mailto: format, on a publicly viewable web page, you're just begging for spam. That address will be harvested, used by spammers, and then sold and resold and so on and so on.

Use a form! I don't know what kind of hosting you're using but the NMS Formmail forms are a good place to start:

Friday, February 11, 2005

Span This -- Div That...

What is the difference between the DIV and SPAN tags? The descriptions given in Dreamweaver are identical. Are there instances where one should be used over the other?

Their basic function - provide a tag to hold style information - is the same. The difference is that div is a block-level element, whereas span is inline.

What this means is divs exist in their own space - as a block - so they have space around them. Other block elements in HTML include: table, p, hr, and the headings.

Inline elements like span can exist in the line with other elements - they don't create their own space. Other inline in HTML include: img, a, strong and em.

For instance:
<div id="content">

You use div because you want to take a series of other blocks - in this case, paragraphs - and group them together inside a bigger block - the div - for styling. ("div", by the way, is short for "division".)

<p>This text should be <span class="redbold">red and bold</span>.</p>

You use span because the text being marked up - the words "red and bold" - will exist inline within the paragraph, instead of in their own space. Note that using div in the above example would not end well:

<p>This text should be <div class="redbold">red and bold</div>.</p>

would look like this:

This text should be

red and bold

Thursday, February 10, 2005

Count The Visitors...

I would like to count visitors to our web site. Is there a siteb where I can download a counter for Dreamweaver?

We use StatCounter - a free and invisible counter with a good range of information provided and even better, it's simple to follow. Of course this one is not the only one listed online, just search the web for counters and I'm sure that you will find many others.

Wednesday, February 09, 2005

ColdFusion: cfcookie

Question: I would like to delete a specific cookie and not just set its value to nothing but delete it entirely from the client browser.

cfcookie name="TheCookie" value="" expires="NOW" doesn't seem to want to work.

Answer: The problem you're running into is that cookies are identified by more than their name. In order to change or override a cookie you'll need to set a new cookie with the same exact identifier.

A cookie is uniquely identified by:
- name
- domain
- path
- security requirement

Normally, this means setting the name and path, since the application is rarely going to need to set something other than the default for domain or secure. The default path of a cookie set without a path=value is the same as the resource that set it (the page). You should be aware of this if you set cookies using cfheader.

However, if you are setting things with cfcookie, then things are both easier and more complex. Setting no path value in cfcookie is equivalent to setting path=/ in the set-cookie header. *But* cfcookie won't allow you to set a path unless you also set a domain; domains need at least 2 dots for three-letter top level domains, and at least 3 dots for two-letter top level domains. The CF docs say the cookie domain must start with a dot, but that's wrong (CF may requiere it, but cookies don't). So consider the following:

1. cfcookie name="foo" value="bar"/
2. cfcookie name="foo" value="bar" path="/foodir/"/
3. cfcookie name="foo" value="bar" path="/foodir/" domain=""/
4. cfcookie name="foo" value="bar" path="/foodir/" domain=""/
5. cfcookie name="foo" value="bar" path="/foodir/" domain=""/

1 and 4 are valid. 5 is not. CF may prevent you from using 2 or 3.

Crazy, huh? What's even crazier is that if you set *both* 1 and 4, then every page under foodir has *two* cookies with the same name that the browser can choose from, and if you delete one -- the other is still there, with the same name, making it look like you didn't delete anything.

When testing if you can delete cookies, make sure you clear your browser of all the old stuff first. The reason is that if you set a bad cookie while testing, you cannot delete it without setting another one exactly the same way. And you will run in circles because of the two-cookie thing.

Tuesday, February 08, 2005

Is It Better To Use...

Is it better to use layout or table mode in Dreamweaver?

I'd have to say neither as it's better to lay your pages without tables. However, if you are using tables for layout, my opinion is to stick to standard mode and manually insert the tables you need.

The problem with layout mode is that while you can draw cells wherever you want them and let Dreamweaver do the work of building the table around it, you will end up with incredibly messy code that is all but uneditable in anything other than layout mode.

So there you have it.

Monday, February 07, 2005

Coldfusion 7 Released Today...

ColdFusion MX 7 news from Christian Cantrell's blog:

  • The ColdFusion Product Page
  • SYS-CON TV Interview with Dave Gruber (ColdFusion Product Manager)
  • License Changes in ColdFusion MX 7 (via Talking Tree)
  • With the release of a new version comes new tech notes.
  • If you're not already subscribed to the ColdFusion Product RSS feed (or other Macromedia product RSS feeds), what are you waiting for?
  • Blackstone Locales by Paul Hastings
  • Learn More About ColdFusion MX by Ben Forta
  • Warning About Flash Forms (Ray Camden)
  • Installing CFMX 7 on Mac OS X
  • Warning About Application Events (Ray Camden)
  • Find everything else ColdFusion related in the ColdFusion category of MXNA

Sunday, February 06, 2005

Video Blogging Information

Where can I find FAQ's for video blogging?

Check out and and if you have specific questions, go ahead and ask them here.

Additional information can be found at or

You're actually doing two things

a) setting up a video blog

b) setting up an RSS / syndication feed

What is a Walking Tour?? Check it out.