Goodies to Go (tm)
June 14, 2004-- Newsletter #289
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
Goodies to Go (tm)
June 14, 2004--Newsletter #289
This newsletter is part of the internet.com network.
Featured this week:
* Goodies Thoughts - What is XML?
* Q & A Goodies
* News Goodies
* Goodies Peer Reviews
* And Remember This...
The new Beyond HTML Goodies book is now available!
Goodies Thoughts - What is XML?
You may have seen the term bandied about here and there on the
net, or perhaps you have a little more familiarity with it than that, but do you
know what it actually is? Do you know how powerful it can be? Do you think it
might be of use to you? Perhaps I can give you some useful information in this
XML stands for eXtensible Markup Language. You're familiar with markup languages if you've designed any web pages - HTML is HyperText Markup Language. Markup languages have their roots in early word processing systems which used markup languages -- a series of codes -- to define the appearance, or mark-up, of text on a printed page. Markup languages grew into the Standard Generalized Markup Language (SGML) which is the international standard metalanguage for markup languages, the granddaddy, if you will, of markup languages.
Compared to HTML, XML is a fairly recent creation. It is defined by a specification which is maintained by the XML Working Group of the World Wide Web Consortium (W3C, http://www.w3c.org ) The specification defines all the rules of grammar of XML.
XML is a little different from other markup languages. HTML, for example, is a static, or standard, markup language. It includes a set of already designed markups and a document structure definition that you can use to create web pages. XML, on the other hand, is a metalanguage, in that it is a language for defining a markup language. With it, you can customize your own markup language.
The "eXtensible" in its name means that as long as you follow its rules, you can define as many features into your markup language as you would like, creating an initial set and adding more features, or eXtending your definition, at will.
SGML is used to define various types of documents. HTML is a type of document definition created using SGML. You may have seen the following code in some web pages:
<.!doctype html public "-//w3c//DTD html 4.0//en">
This indicates that the document that includes it uses the Document Type Definition (DTD) for HTML 4.0. That definition, which is well known, provides instructions that tell the browser what to do with the markups it finds in the document. In other words, the DTD defines the markups available in the markup language.
XML is a simplified subset of SGML. While SGML is too large and too complicated for the average person to learn, the simplified version may well be within their grasp.
Sometimes, people create XML DTDs (a.k.a. XML "applications") that standardize document formats for a specific group of people. Examples of these are the Mathematical Markup Language, MathML, and the Chemical Markup Language, CML. Another example is the powerful and more portable version of HTML, known as XHTML. XHTML came into being at the end of the nineties and has been gaining momentum ever since. Every good web programmer should be paying attention to XHTML!
If you'd like to know more about XHTML, keep your eyes on the Goodies Website.
Thanks for Reading!
- Vince Barnes
Questions are taken from submissions to our Community Mentors. You can ask a Mentor a question by going to http://www.htmlgoodies.com/mentors.
[See also Goodies Thoughts in http://www.htmlgoodies.com/letters/288.html -- Ed.]
Q. I have 12 small pics I and when the mouse rolls over these I would like below on the page a text box changing the description of the pic Please can you point me in the right direction?
A. Take a look at the Tool Tip script at this site:
It works pretty well and I believe works on most browsers.
A. Here is an example of how you can check all of the text elements in a form to see if they have been filled. If they have not then the form will not be submitted.
frmlen=frmobj.length // get number of form elements
if(flag) // if flag is true
alert("One or more fields are empty")
return false // return false to keep form from submitting
} // true will be returned if all fields are filled
} // and the form will be submitted
<.form name="myform" method="post" action="do.cgi" onSubmit="return doVal(this)">
<.input type="text" name="txt1" size="10">
<.input type="text" name="txt1" size="10">
<.input type="text" name="txt1" size="10">
<.inpu type="checkbox" name="ck1"><.br>
<.input type="submit" value="Submit"><.input type="reset" value="Reset"> <./form>
Q. I am attaching a form to our web site and having the results of the information submitted using the email format. The formula I am using is as follows but the form does not send . Please tell me what I did wrong.
<.form method="post" enctype="text/plain" action="mailto:email@example.com/" ><./form>
A. If you take a look at this tutorial:
You will see that the newer versions of web browsers will not support that type of form. I suggest you not use it as more and more people are using updated browsers.
Here is the updated tutorial for handling forms:
Q. How can I place an image on my web page? I tried <.IMG SRC="joe.gif">. This doesn't work. A red cross appears.
A. The red "x" where the images is supposed to be, can mean one of a few things. The path to you image is possibly incorrect. I checked your html code and noticed most of your graphics are located in a folder called images. If that is where you placed the image the path to it would be something like <.img src="images/joe.gif"> The path depends on exactly where the graphic is located in relation to where (what directory or folder) your web page calling it is located. It can get a little confusing as first. If just updating a page look at the html code of a graphic thats displays properly and make a note of the img src= code file path to it.
Also keep in mind, file name and the img src code name must match exactly. Letter case must be the same for both and extension names, like .jpg or .jpeg must match.
To copy the files you can use a FTP program for uploading and downloading files and graphics from your site.
(Note that NT/Win2K hosting servers are not case sensitive - Ed.)
Microsoft in NT 4.0 Support Switch
[June 21, 2004] The company has agreed on parameters for 'specialized support' for Windows NT 4.0.
FileMaker Pro Boasts Databases to Go
[June 21, 2004] FileMaker releases a new version of its mobile product designed to let you transfer and synchronize FileMaker Pro 7 data between handhelds devices and desktop databases ... also announces Work Order Request application.
SUPERCOMM Jumps Out of the Gate
[June 21, 2004] Networking players trumpet new products, services and customers as the industry trade show commences in Chicago.
Biz Intel That Drills into Tech Press
[June 21, 2004] Biz360 pushes new products to market as big-name players position for growth in media tracking.
Oracle Keeps Microsoft Up at Night
[June 18, 2004] The Justice Department winds up its case next week.
Dirac from the BBC
[June 18, 2004] FEATURE: Is there space for a new video compression format? Who knows, but backing from the Beeb and some market wiggle room offer hope.
Patent Wars Will Move to Wireless
[June 18, 2004] Acacia Technologies, the company claiming patents on streaming media, is moving up the food chain.
MaXXan Rolls Out Next-Gen Storage Switch
[June 18, 2004] Everyone talks about adding intelligence to SANs, but MaXXan Systems is actually doing something about it.
SkyPilot Shows Long-Distance Wares
[June 18, 2004] A new set of products is out to help connect businesses and WISPs to users over high-speed wireless, using high-power 802.11a (for now).
Open Source as Weapon
[June 18, 2004] Peace, Love and Open Source? Don't believe it. Companies can and do wield open source as a weapon.
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
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 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!
Windows Tech Goodie of the Week:
Hit Counter ASP.NET Sample Code
This script is a ASP.NET version of our classic hit counter. I've implemented it as a custom user control in order to make it easy to use on a large number of pages. It works in much the same manner as our original sample and lets you select whether you want the count displayed as text or images. I've also added a new option to show no display at all.
*** AND ***
Kerberos Authentication with Web Services Enhancements 2.0
Kerberos authentication is the cornerstone of Windows operating system authentication architecture. Web Services Enhancements 2.0 (WSE 2.0) extends Kerberos support to ASP.NET Web services. Chris Peiris explains the support for this new feature in WSE 2.0.
And Remember This . . .
On this day in...
1964 Civil Rights Workers Disappear
After investigating the burning of an African American church by the Klu Klux Klan, three civil rights workers disappeared in Neshoba County, Mississippi on this day in 1964. At the time, Mississippi was a very segregated state, rife with prejudicial racial hatred. The civil rights activists, members of the Congress of Racial Equality (CORE) included two white men from New York, twenty-four year old Michael Schwerner and twenty year old Andrew Goodman and a twenty-one year old black Mississippian, James Cherney. The three men, who had become known to the local KKK, were returning to Meridian after investigating the burning of a church in Neshoba county when they were stopped by Neshoba County Sheriff's Deputy Cecil Price, a member of the KKK, who jailed them allegedly for suspicion of church arson. The men spent seven hours completely isolated in jail after which Price and a Philadelphia (Mississippi) police officer escorted them out of the city of Philadelphia (the county seat). Price returned the police officer to the city and then rushed back alone to the three men. He captured them just inside the county and held them in his car. Two other cars joined him and they drove them onto an unmarked dirt road where the three men were shot to death and their bodies buried. The incident drew national attention and started an FBI investigation operation known as MIBURN, an abbreviation of "Mississippi Burning". The investigation, which personally involved Attorney General Robert F. Kennedy and FBI Director J. Edgar Hoover, led eventually to the December 4th indictment of nineteen men, including Price. On October 27th, 1967 an all white jury convicted nine of the nineteen, including Price and KKK Imperial Wizard Sam Bowers. This was the first time in Mississippi's history that anyone had been convicted for action against civil rights workers or for the murder of a black man. Judge Cox sentenced the convicted men to terms ranging from three to ten years, of which, none served more than six. Following the sentencing, Judge Cox said "They killed one nigger, one Jew, and a white man. I gave them what I thought they deserved."
Today was also the day that in: 1498 Emperor Maximillian expelled the Jews from Nuremberg, Bavaria; 1633 the Inquisition forced Galileo Galilei to "abjure, curse, & detest" his Copernican, heliocentric theory ("I do not feel obliged to believe that the same god who has endowed us with sense, reason and intellect has intended us to forgo their use." - GG); 1879 F.W. Woolworth opened his first store (which quickly failed); 1887 was the Golden Jubilee of Queen Victoria; 1939 Doctors disclosed that Lou Gehrig was suffering from amyotrophic lateral sclerosis; 1945 Japanese forces on Okinawa surrendered to the US; 1948 the first stored computer program was run, on the "Manchester Mark I"; 1948 Dr Peter Goldmark of CBS demonstrated the "long playing record" (CBS committed to 33 1/3 rpm records, announcing they would phase out 78's); 1968 Supreme Court Justice Earl Warren resigned; 1977 Former White House Chief of Staff HR Haldeman entered prison; 1982 a jury found John Hinkley Jr not guilty, by reason of insanity, of the attempted assassination of President Ronald Reagan; 1986 President Ronald Reagan gave a speech in defense of his Judicial appointments; 1989 the Supreme Court ruled that the right to burn the US flag as a political expression is protected by the First Amendment to the Constitution of the United States (freedom of speech), declaring the Texas' Federal Flag Protection Act of 1989 unconstitutional ("If there is a bedrock principle underlying the First Amendment, it is that the government may not prohibit the expression of an idea simply because society finds the idea itself offensive or disagreeable...We have not recognized an exception to this principle even where our flag has been involved." - Justice William Brennan, and "The hard fact is that sometimes we must make decisions we do not like... It is poignant but fundamental that the flag protects those who hold it in contempt." - Justice Kennedy); 1990 25,000 people died in a earthquake in Iran; 1990 Little Richard got a star on Hollywood's walk of fame;
Born today were: in 1732 the first first lady of the US, Martha Washington; 1905 French philosopher Jean-Paul Sartre ("death is a continuation of my life, without me"); 1921 actress Jane Russell; 1921 English actress Jean Kent; 1922 actress Judy Holliday; 1923 actor John Compton; 1925 actress Jean Stapleton; 1935 French novelist Francoise Sagan; 1944 English musician Ray Davies; 1947 actor Michael Gross; 1950 musician Joey Kramer; 1953 first female leader of a Muslim nation (Pakistan) Benazir Bhutto; 1982 Prince William of Wales (son of Prince Charles & Princess Diana of the UK);
Thanks for reading Goodies to Go!
Archive Home Page.