Goodies to Go (tm)
March 15, 2004-- Newsletter #276

By Vince Barnes



Goodies to Go (tm)
March 15, 2004--Newsletter #276

This newsletter is part of the internet.com network.
http://www.internet.com
 


Featured this week:

* Goodies Thoughts - An Unexpected Host
* Q & A Goodies
* News Goodies
* Goodies Peer Reviews
* Feedback Goodies  
* Windows Tech Goodies  
* And Remember This...

 


 

Goodies Announcement

The new Beyond HTML Goodies book is now available!

 

Go beyond the basics and learn how the pros add and use dynamic HTML features and advanced JavaScript techniques. Beyond HTML Goodies demonstrates dozens of new and different features readers can add to their existing Web pages using HTML and JavaScript. The book starts with simple text and image tips, such as adding a clock to a Web page or causing text to appear when the mouse moves over an image. It gradually builds to more complex tricks, including manipulating forms or working with cookies behind the scenes. Throughout the book, readers enjoy Joe's snappy style and "to the point" discussion of each "goody" in the book.

 

http://books.internet.com/books/0789727803

 

 

Goodies Thoughts - An Unexpected Host


I've talked before about the effort one has to go through to find a good host for a website (see http://www.htmlgoodies.com/letters/245.html) but in that discussion I may have glossed over one of the most important possibilities of all. I am here today to attempt to correct that oversight!

First, let me say a little about the "size" of a website. When I talk about the size of a site I am not so much concerned with the number of pages it contains, or the amount of disk space it needs to hold it, as I am with the volume of traffic it generates. Thus, a small website would be one generating hundreds, or perhaps a few thousand page views monthly. HTML Goodies is a medium sized site, generating millions of page views monthly. Yahoo, Google and Microsoft are large websites, generating millions of page views daily.

Many of us enjoy higher speed connections than the good old dial-up on a modem. Broadband shows up in cable, DSL, wireless and sometimes other types of connections. Basically, "broadband" means "faster than dial-up"! It is all those of us that enjoy our broadband connections that have another opportunity for hosting their website -- namely, to host it at home on your own PC. In theory, it could be possible to host a very small website on a dial-up connection. It would require an automatic dial back in case of disconnect mechanism, and it would certainly require a cooperative (or perhaps inattentive!) ISP. The rest of this discussion has the broadband user in mind, though it would also apply to the dial-up user.

Broadband provides ample speed and capability for hosting small websites. There are, however, some pitfalls. First, you should note that almost all broadband service provide full speed in only one direction. This means that as you surf the web or download files, for example, you enjoy these things coming at you at full speed. Send stuff out, however, and it is considerably slower. This asymmetry is deliberate. The majority of the traffic that a service provides sees is going to the subscriber, not coming from, so that's where the put the beef. Consequently your ability to host a speedy website is limited. As I said before, though, it should be plenty for a small site. (56K modems work the same way, incidentally, allowing 56k downloads but only half that in the other direction.)

You'll need to register a name and point it to your computer. See this article for some thoughts here: http://www.htmlgoodies.com/nontechintro/ntipart2.html

Many broadband providers block port 80, the web port, to prevent you from hosting websites at home. They also change your IP address with some regularity so that you can't set the Domain Name System (DNS) to consistently point to your computer without having to reset the DNS. See Goodies To Go number 247 at http://www.htmlgoodies.com/letters/247.html for solutions to these minor irritations.

Hosting a website is possible on either Windows or Linux (and other OS's, of course; but these are the most common.) There are consideration concerning each of these choices; and there is an article covering those considerations here: http://www.htmlgoodies.com/articles/winvsinuxhost1.html

If you are running Windows XP, you can install IIS. IIS (Internet Information Services) on XP is the same IIS that runs on Windows 2000 and 2003 Server systems (either version 5 or version 6) except that on XP it is restricted to only one website. IIS on XP replaces the old Personal Web Server that was used in conjunction with FrontPage and the like on earlier Windows versions. In the Windows world, you need the server system to be a full blown host.

If you are running Linux, it most probably came with an implementation of Apache. This combination will allow you to host your site with the same kinds of options that are available on most server systems, including multiple websites, etc.

Hosting your own website can be a lot of fun, too. Doing so lets you see the web from the other perspective - that of a server, instead of a surfer. This helps you to develop a keener sense for the inner workings of the whole thing. Your web pages may well benefit from the endeavor!
 

Thanks for Reading!
 

- Vince Barnes

 

Top

Q & A Goodies

Questions are taken from submissions to our Community Mentors. You can ask a Mentor a question by going to http://www.htmlgoodies.com/mentors.



Q. I want to have a small window open when someone clicks a link on my page. I don't want a full size window, just a small one. Can JavaScript do this?

A. Since you will probably have more than one link on a page you should set up a function in your head section of your document that will be used by multiple links. You can pass the html page you want to load in the window to the function when the link is clicked on. With window.open() you can set the
width, height, postion and other attributes. Here is an example:
<script language="javascript"> function OpenWin(linkid)
{ NewWin=window.open (linkid,"newwin",config="width=200,height=250,location=no,status=no,directories=
no,toolbar=no,scrollbars=no,menubar=no,resizable=no,top=30,left=30");
NewWin.focus()
}
</script>
The variable "linkid" contains the page you want to load. This was passed to the function when the link was clicked on. Then in the body section of your document your link could look like this:
<A HREF="javascript:OpenWin('somepage.html')">Apples</A>
You would wrap the link around the word that you want to click on for more info. The HTML Goodies site does have a tutorial on window.open()
(see http://www.htmlgoodies.com/primers/jsp/hgjsp_11.html and http://www.htmlgoodies.com/primers/jsp/hgjsp_12.html -- Ed.)



 


Q. I read through the tutorials on FORMS. I want to know how, when people click the SEND button, do I send mail automaticcally instead of it opening up OUTLOOK?

A. You are going to need some server side coding for this to work. And it depends on what your server supports. Most hosting packages support some kind of script to send email from a web form. Most free hosting sites do not. It all depends on what your server supports. If your server supports Active Server Pages (ASP) then you can use ASP to send email. If your server supports CGI or PERL then you can use that to send email.
(Version 6+ Browsers don't support email forms. See
http://www.htmlgoodies.com/articles/emailforms1.html and
http://www.htmlgoodies.com/articles/emailformphp.html - Ed.)



 

Q. My server supports CGI, PERL, PHP & MySQL, but not ASP. What is the easiest way to add a shopping cart capability with credit card processing capability?

A. You can buy a shopping cart that will run on what your host supports. First check with your host to make sure that they allow uploading a shopping cart. Then take a look at this site: http://php.resourceindex.com/Complete_Scripts/Shopping_Carts/
It has a lot of pre-built carts that will run on a server that supports PHP. They seem fairly inexpensive. Before you buy one, make sure it has everything you are looking for and if possible, see if they offer a demo for you to try.




Q. I'd like to do is create a template (basically a header and footer) so that I can update the top and bottom of all my webpages by only altering one file for each.

A. You can use SSI to include a page at the top and a page at the bottom, if your server supports this. Take a look at this tutorial: http://www.htmlgoodies.com/beyond/asp.html
About half way down the page it explains SSI and include pages.




Q. I am constantly creating files (pdf or word) files that I need to show to many co-workers. Instead of having to email everyone everytime I finish a file, I would like to upload the file to my server and have them view the list of files online and download the ones they want. These files need to be password protected as different people in different departments should only see files pertaining to them. Here was my idea, create a bunch of password protected folders on a server - one for each department, and I will upload the file to any folder that should be allowed to view these files. Two questions: 1) I put the files in a folder, but when I try to view the folder in a browser it tells me I don't have permission to access this folder (I assume because I never created an index file). How can I set it up that I should be able to view a list of files that are in the folder? 2) how can I create a page that will allow me to upload files to folders using a browser?


A. I believe you are correct in that you do not have an INDEX file for the server to show when you try to access the folder. You could create an INDEX file with the links to the documents for downloading. I am assuming that you have already password protected the folder? An even easier way would be to use a password log in feature for your pages. The application would allow users to sign up themselves and you would control which group the user should be in and only the documents or files you allow each group or person to view. There is a nice web application called ASPLogin. It has to run on a server that supports ASP. For example, to make a document available to all users in a group called 'management', members of a group called 'administrators' and a user called 'fred' (who may or may not be in either of the groups), you would add the following code to the top of the document:
<%@ LANGUAGE=VBScript %>
<%
Set asplObj=Server.CreateObject("ASPL.Login")
asplObj.Group("management")
asplObj.Group("administrators")
asplObj.User("Fred")
asplObj.Protect
Set asplObj=Nothing
%>
Any other group or person trying to see that document will not be allowed to see it. It is a pretty slick application You can take a look here: http://www.asplogin.com
To create a page to allow you to upload documents would call for some scripting. This all depends on what type of server you site is hosted on. If it is a Windows server then it will support Active Server Pages (ASP).


 

 

 

 

 

Top

News Goodies


EU Members OK Draft Ruling Against Microsoft
[March 15, 2004] Final decision in five-year-old antitrust case moves closer to a ruling, and expected penalties.

Click here to read the article

 


 

LynuxWorks Plans Eclipse Boost
[March 15, 2004] New Linux software tool boosts open-source software framework.

Click here to read the article

 

 

Allaire Founders Tackle Web Collaboration
[March 15, 2004] Buoyed by the success of ColdFusion and HomeSite, J.J. Allaire and Adam Berrey are pitching a program that helps researchers manage Internet information.

Click here to read the article



 

IBM Package Looks to Stop Risky Business
[March 15, 2004] Package geared to cut down on credit risks in banks, according to European Basel II regulations.

Click here to read the article

 

 

 

EU Objects to Oracle's Bid for PeopleSoft
[March 12, 2004] Piggybacking on the Justice Department's suit, the European Commission is expected to detail its complaint next week.

Click here to read the article

 

 

 

Lindows Concedes Name to Microsoft in Europe
[March 12, 2004] The company faces hefty fines after an exasperated Windows software vendor asks an Amsterdam court to come down on the open source upstart.

Click here to read the article
 

 

 

Telecom Lawyers Wary of FCC Proposals
[March 12, 2004] The agency's proposed rules could expose Internet telephony firms and ISPs to access fees.

Click here to read the article

 

 


Thumbs Up for Longhorn Security Lockdown
[March 12, 2004] Developer embraces the proactive security technologies being built into Microsoft's Longhorn operating system.

Click here to read the article

 

 

What to Do if SCO Comes Knocking
[March 12, 2004] Good legal advice is the best protection for Linux users, experts tell internetnews.com.

Click here to read the article


 

 

Microsoft, IBM Close Controversial Message Spec
[March 11, 2004] Web services faction finishes messaging spec considered to be duplicative by a rival faction.

Click here to read the article

 

 

 

 


Top

Goodies Peer Reviews


 

Every week a site is selected for review. Each week, reviews of the previous week's selected site are chosen for publication on the HTML Goodies website.

 

The current week's selected site is published in Goodies To Go and in the Peer Reviews section of the website.  Current contact email addresses for submitting your site and for submitting reviews are published in Goodies To Go.

If you would like to have your site reviewed, sign up for the Goodies To Go newsletter in the Navigation Bar on the left side of this page. 

For full details about this program, see http://www.htmlgoodies.com/peerreviews
 

 

 


Top

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:

mailto:nlfeedback@htmlgoodies.com


We already receive a lot of email every day. This address will help 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/


For those who are missing Peer reviews: we are once again revising the Peer review program in the hopes of creating a workable solution. The current plan is to move the new Peer Review pages into place in the new year. All those who have been selected for reviews in the past will be featured in the new pages. The new method will make it much easier for your peers to provide feedback and much easier for us to handle the publication side of things. "Watch this space!" It's coming soon!!

 


Thanks again for all your feedback!
 

Top


 


Windows Tech Goodie of the Week:

 

Microsoft Releases the ASP.NET Resource Kit

http://www.asp101.com/articles/john/aspnetreskit/default.asp

Microsoft recently released the ASP.NET Resource Kit. It's chock full of
code samples, walkthroughs, sample applications, and all sorts of other
goodies. It's got sections on just about everything you might want to do
with ASP.NET and even includes the obligatory special offers and discounts.


*** And ***


Customizing the VBCommenter PowerToy

http://www.15seconds.com/issue/040302.htm

Patrick Coelho shows how to customize the VBCommenter PowerToy to provide
the same VS .NET XML code commenting and automated code documentation
functionality afforded to C# developers.
 

 

Top
 
 
 
And Remember This . . .


On this day in...

44 BC Gaius Julius Caesar Stabbed To Death

March the 15th is, of course, the now infamous Ides of March. This day became infamous for the killing of Julius Caesar (Gaius Julius, Caesar of Rome}. Gaius Julius rose from being a prosecutor for the Popular Party in 78BC to defeating Pompey's army at Pharsalus in 48BC. Pompey, who was the leader of the Popular Party, had become jealous of Caesar's successes in Gaul (France) and Britain and in 53BC had ended their political alliance. Caesar refused to give up his armies when asked to do so by the Senate in 49BC, starting a civil war against Pompey instead. Following his defeat, Pompey fled to Egypt where he was assassinated and Caesar was appointed consul and dictator of Rome. He traveled around the empire, consolidating his position, until 45BC, when he returned to Rome and was appointed dictator for life. A group of conspirators, including his close friend Brutus, assassinated Caesar on this day in 44BC, believing it would enable the Roman Republic to be restored. Instead, several civil wars ensued until Augustus, grand nephew to Julius, emerged as the first Roman Emperor. The Republic was gone forever.


Today was also the day that in: 1360 the French invasion army landed on the south coast of England; 1493 Christopher Columbus returned to Spain from his first voyage to the New World; 1906 Messrs. Rolls, Royce and Johnson formed Rolls Royce Limited; 1937 in Chicago Illinois the first blood bank was established; 1955 the US air force unveiled the self guided missile; 1960 the National Observatory at Kitt's Peak Arizona was dedicated; 1961 South Africa withdrew from the British Commonwealth; 1965 TGI Friday's opened their first restaurant at 63rd street and 1st avenue in Manhattan; 1968 Life magazine called Jimi Hendrix the "most spectacular guitarist in the world"; 1975 Greek shipping magnate Aristotle S. Onasis died at 69; 1979 Aparat released Newdos 2.1 for the Radio Shack TRS-80; 1984 English comedian Tommy Cooper collapsed and died on stage; 1991 four Los Angeles police officers were charged in the beating of Rodney King;


Born today were: in 76 Roman Emperor and wall builder Hadrian; 1912 blues great Sam (Lightnin') Hopkins; 1935 evangelist Jimmy Lee Swaggart; 1935 actor Judd Hirsch; 1944 musician Sly Stone; 1946 English ballet dancer and director David Wall; 1947 musician Ryland Cooder; 1961 romance novel cover model Fabio Lanzoni;

 


Thanks for reading Goodies to Go!

 

Archive Home Page.



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