Goodies To Go! Newsletter #380

By Vince Barnes


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

                      Goodies to Go (tm)
               March 14, 2006 -- Newsletter # 380
     This newsletter is part of the internet.com network.
          Please visit http://www.htmlgoodies.com
A Note about Email Filtering:
All Goodies To Go newsletters are sent from the domain "internet.com."  Please use this domain name (not the entire "from" address, which varies) when configuring e-mail or spam filter rules, if you use them.

Featured this week:
*   Goodies Thoughts - Web Caution
*   Q & A Goodies
*   Discussion Goodies
*   News Goodies
*   Feedback Goodies
*   Windows Tech Goodie of the Week 
*   And Remember This...

Web Caution
Last week I talked about the first foray into the world of Web development of the daughter of a friend of mine.  (In case you missed it, you can find it here: http://www.htmlgoodies.com/introduction/newsletter_archive/goodiestogo/article.php/3591506 )  She had created a small photo library on MySpace.  Following that newsletter I received a question from a reader that touched on a very valid and noteworthy point, so this week I'm going to discuss the matter a little.
MySpace and some other similar services provide web space a simple to use creation tools for people to create their own web pages.  These services have become particularly popular with young people who do not have the wherewithal to buy private space.  To attract people into the fold, the services create "communities" of friends.  If you sign up for an account, you can build a list of friends, somewhat like a buddy list or contact list in a messenger service.  You can also search for your friends by name and find their web space.  If you do not sign up, you would have to know your friend's URL, which is a long and unfriendly one involving a lot of numbers.  This provides the encouragement to sign up.  Also, when you sign up, you are encouraged to create your profile, which includes basic information about yourself.
If a small pond becomes filled with fish, it will only be a matter of time before a heron arrives to take advantage of the situation.  So too with a service that attracts a lot of young people, it is only a matter of time before the predators arrive.
If a person provides pictures of themselves in their space, and puts their real name and other information into their profile, they may be providing the predator all they need to locate and lure their victims.  This is especially true if the profile includes their city, or worse yet, their address or phone number.
People get excited about expressing themselves and sharing their thoughts with the world, which I think is great and is to be encouraged.  However, if this expression and though is accompanied by identification and location information, it can become dangerous, especially for the young, who may not see the danger.
I also strongly encourage parents, older brothers and sisters and friends to watch over the younger ones, be aware of their publications, and provide guidance and a protective eye.  The Web, like all things on the Internet, is a wonderful place, but it most definitely calls for due caution.

Thanks for reading!

- Vince Barnes

Q & A Goodies
Questions are taken from submissions to our Community
Mentors. You can ask a Mentor a question by going to

X                        X
X   Please take note:    X
X                        X
We have had a number of people indicate that their email client programs are interpreting code examples in this newsletter as actual HTML code instead of text.  To overcome this problem and to enable everyone to read the newsletter, there is a period after the "<" in each tag.  If you cut and paste to try out code examples, please remember to remove the periods.  Wherever we intend you to use "<." in your code, the example will show "<..".  In this way, you will be safely able to use a global edit to change "<." to "<".  Thanks to all of you for your patience with this; if this technique creates an undue problem for you however, please let us know via our feedback address (see Feedback, below).

*** This question was submitted to our Mentor Community.
    The answer was provided by one of our Mentor Volunteers
Q. I am attempting to create a web page and have run into a problem. I link to pages created in MS Word (using tables, not html written).  The contents on these MS Word created pages are misaligned depending on the users' browser.  I wish for the pages to maintain their format so that the user scrolls left/right with the scroll bar in the right frame. (Code sample provided)
A. I believe the problem you are running into is that your table(s) uses an absolute value. You should change the width to a percentage. Try using width="100%" in the table tag instead of width="480". This will allow the table to resize according to the user's screen resolution. The other problem could be the Microsoft Word code that is causing browsers to have trouble rendering the page properly. There is a lot of extra code created by Word that should be taken out.

*** This question was submitted to our Mentor Community.
    The answer was provided by one of our Mentor Volunteers
Q. How do I makethree tables all on the same line with a space between them?
A. You make one large table at 100 percent width and a border of zero, with one row then add your three tables in the large tables <.td> tags. Play around with the <.td> widths to get the size you need. You
can add a couple <.td> tags with the code &nbsp; which is just a blank space to make some space between the 3 tables. Here is a example of the code:
<.table summary="large table" align="center" width="100%" border="0"
cellspacing="0" cellpadding="0">
<.td width="30%">
<.table summary="Menu Table" width="100%" border="1" cellspacing="0"
<.tr align="center"><.td>Menu<./td><./tr>
<.td width="5%">&nbsp;<./td>
<.td width="30%">
<.table summary="Main Table" width="100%" border="1" cellspacing="0"
<.tr align="center"><.td>Main<./td><./tr>
<.td width="5%">&nbsp;<./td>
<.td width="30%">
<.table summary="New Menu Table" width="100%" border="1"
cellspacing="0" cellpadding="0">
<.tr align="center"><.td>New Menu<./td><./tr>

*** This question was submitted to our Mentor Community.
    The answer was provided by one of our Mentor Volunteers
Q. Is there a way of naming spans partly with a variable? I.e. insted of doing this:
 document.all.sp1.innerHTML=('<.img src=pt1.gif>');
 document.all.sp2.innerHTML=('<.img src=pt1.gif>');
 document.all.sp3.innerHTML=('<.img src=pt1.gif>');
 document.all.sp4.innerHTML=('<.img src=pt1.gif>');
 document.all.sp5.innerHTML=('<.img src=pt1.gif>');
 document.all.sp6.innerHTML=('<.img src=pt1.gif>');
 document.all.sp7.innerHTML=('<.img src=pt1.gif>');
 document.all.sp8.innerHTML=('<.img src=pt1.gif>');
is there any way like:
 for( var n = 1; n < 9; n++)
 document.all.sp + n + .innerHTML=('<.img src=pt1.gif>');

A. You could try to use the eval() method like this:
 eval("document.all.sp" + n + ".innerHTML=('<.img src=pt1.gif>')");

*** This question was submitted to our Mentor Community.
    The answer was provided by one of our Mentor Volunteers
Q. I was asked recently to do a web site for a chauffeur company. I have now finished it and he is asking for a price and I don't know what price to give him.  Any advice?
A. This was actaully the subject of a past Goodies to Go Newsletter. You can read it here:

*** This question was submitted to our Mentor Community.
    The answer was provided by one of our Mentor Volunteers
Q. If my site uses the same images on all the pages, do I only preload on the index page, or should I have each page preload all the images?
A. If they are all in the same directory for each page then you should not have to pre-load them for each page.  Once on the first page should do the trick.  You should be able to test this by commenting out the pre-load script on another page and see if the images take longer to load.

*** This question was submitted to our Mentor Community.
    The answer was provided by one of our Mentor Volunteers
Q. I would like to eliminate the use of the Enter key that a user may enter while in a TextArea. How can I do that?
A. Here is a script example that will ignore the enter key in a textarea:
     <.script language="JavaScript">
      IE5=document.all? 1:0
      function stopkey(e)
          whKey = !IE5? e.which:event.keyCode; // check for NS4 and NS6
          window.status=whKey  // Display ascii code in status bar
           if(whKey=='13') // check for ascii enter key (ascii)
              return false;
     <.form name="myform">
          <.textarea name="txta" cols="30" rows="4" WRAP="hard"
onkeypress="return stopkey(event)" >Enter your response here<./textarea>

Discussion Goodies
Have you seen the discussion forums on the HTML Goodies website?  It's a great place to get help from others who, just like you, are developing web pages.  Many different topics appear in the forum, and a new one will appear if you create it!  Here's a sample of recent topics:

News Goodies
Apple Patches Again
[March 14, 2006] Second patch issued in fewer than two weeks labeled as "highly critical."
Read the article:

Microsoft Has a New Deal for Small Business
[March 14, 2006] On the day it kicks off its Webcast-filled Small Business Summit, Microsoft announced a new financing option, some new twists with Best Buy and a revamped Small Business Server.
Read the article:

Google, DoJ Face Off in Search Data Tussle
[March 14, 2006] Google, Justice Department face off in federal court over subpoena for search data. 
Read the article:

An Amazon Storage Space For Developers
[March 14, 2006] Amazon S3 is simple storage for developers who want to build Web applications that scale. 
Read the article:

Microsoft Plans Free Parental Monitor
[March 14, 2006] Microsoft sees online safety 'a crucial issue facing families today.'
Read the article:

Freeze Your Identity to Stop ID Theft
[March 14, 2006] Can you stop identity theft before it occurs? One tech startup thinks it can.
Read the article:

QuickTime, iTunes Users at Risk (Again)?
[March 13, 2006] Security research firm alleges that Microsoft does a better job of responding to security researchers than Apple.
Read the article:

Million-Dollar Payout in E-Mail Privacy Case
[March 13, 2006] UPDATED: Marketer ignored Internet privacy statements, according to New York attorney general's office.
Read the article:

Open Source Collaboration Meets VoIP
[March 13, 2006] Zimbra and Asterisk join text and voice forces in open source style.
Read the article:

ScanR Turns Cell Phone Pics Into Usable Documents
[March 13, 2006] Are camera phones good scanners? ScanR believes so.
Read the article:

Feedback Goodies
Did you ever wish your newsletter was an easy two way communications medium?  Ploof! It now is!
If you would like to comment on the newsletter or expand/improve on something you have seen in here, you can now send your input to:
We already receive a lot of email every day.  This address helps us sort out those relating specifically to this newsletter from all the rest.  When you send email to this address it may wind up being included in this section of the newsletter, to be shared with your fellow readers.  Please don't send your questions to this address.  They should be sent to our mentors: see http://www.htmlgoodies.com/mentors/

Thanks for all your feedback!

Windows Tech Goodie of the Week 
Examining ASP.NET 2.0's Site Navigation - Part 5
In this article we'll look at how to accomplish a hodgepodge of customizations when rendering the navigation UI controls. Read on to learn more!

*** AND ***

Database-Driven Login & Password ASP.NET Sample Code
When I went to write an ASP.NET version of the classic ASP auto- navigation database-driven login sample that I published last week, I realized that I hadn't yet published a plain database-driven login and password sample for ASP.NET. So... in an effort to keep the horse in front of the cart, here it is...

*** AND ***

COM Interop Exposed - Part 2
In this continuation of his first article on COM Interop, Patrick Steele explains how to expose your .NET events to COM clients. Defining events that will be exposed to COM isn't difficult to do, but it does take a few steps.

And Remember This ...
1950 The FBI's "Ten Most Wanted" List Began
Hoping that the publicity it could provide would elicit the help of the general public in locating particularly dangerous fugitives, the FBI published its first "Ten Most Wanted" list on this day in 1950.  All FBI field offices are encouraged to submit candidates for inclusion on the list.  To be considered, a candidate must have a long criminal history, have currently pending charges that indicate a serious risk to the public and it must be reasonably believed that the publicity provided will assist in the capture of the fugitive.  Since J. Edgar Hoover approved the list's inception, about 500 fugitives have appeared on the list, and the publicity provided has led to the capture of more than 130 of them.

Today was also the day that in: 1629 England granted a Royal Charter to the Massachusetts Bay Colony; 1794 Eli Whitney patented the cotton gin; 1900 the US currency adopted the Gold Standard; 1903 the first national bird reservation in the US was established at Sebastian in Florida; 1936 the Federal Register, the first magazine of the US government, published its first issue; 1950 the FBI started their "Ten Most Wanted Fugitives" program; 1964 a jury in Dallas Texas sentenced Jack Ruby to death for the murder of Lee Harvey Oswald;

Born today were: in 1808 Viennese composer Johan Strauss the Elder; 1829 Engishman Charles Charlesworth (who died of old age at the age of 7); 1864 Railroad engineer (John) Casey Jones; 1879 German Physicist/Mathematician Albert Einstein; 1933 English actor Michael Caine; 1933 Musician Quincy Jones; 1940 English actress Eleanor Bron; 1942 English actress Rita Tushingham; 1945 musician Walter Parazeider (Sax - Chicago); 1946 English comedian Jasper Carrott; 1947 comedian Billy Crystal; 1952 musician David Byrne (guitar - Talking Heads); 1958 Prince Albert Alexandre Louis Pierre of Monaco; 1961 actor Russell Todd; 1969 actress Laura Leighton; 1970 actress Meredith Salenger;

EarthWeb's family of online services for IT insiders
IT MANAGEMENT http://www.earthweb.com/dlink.index-jhtml.72.949.-.0.jhtml

Make a Comment

Loading Comments...

  • Web Development Newsletter Signup

    Invalid email
    You have successfuly registered to our newsletter.
Thanks for your registration, follow us on our social networks to keep up-to-date