************************************************************
Goodies to Go ™
May 9, 2005 — Newsletter # 336
************************************************************
Featured this week:
* Q & A Goodies
* News Goodies
* Feedback Goodies
* Windows Tech Goodie of the Week
* And Remember This…
Short Thoughts
put major constraints on my time. I regret that your newsletter this week
will be somewhat abbreviated. Back to normal next week, though — I
promise!
– Vince Barnes
***********************************
Questions are taken from submissions to our Community
Mentors. You can ask a Mentor a question by going to
https://www.htmlgoodies.com/mentors/
laptop computers located in my client’s fleet of vehicles. I am attempting
to find a program or script that will act as a hit counter so I can analyze
the traffic and identify the pages or sections visited or more importantly,
those that are not.
looking for. Take a look at this HTMLGoodies page:
http://htmlgoodies.earthweb.com/beyond/cookiecount.html
Q. I would like to be able to create clickable buttons at the top of
my page to link to different places further down the page.
<.a href="#link1"><img src="yourbuttonname.gif"><./a>
Then where you want it to link to, add this anchor code:
<.a name="link1"><./a>
When you click the button it will jump down on the same page to the anchor.
in the scripts area but when I go to my site everything is in the top left
corner.
left. There are tags for positioning, and stylesheets give more control.
Sometimes tables are used for precise layout. I suspect tables would be the
most useful thing for you right now, so have a look at the tables tutorials.
https://www.htmlgoodies.com/tutors/tbl.html
Q. How do I make animated GIFs?.
graphics application combines them into one file. Imageready can do this.
Shareware sites may have Microsoft GIF Animator, which I’ve used and works
adequately. There will be other applications for animating GIFs. Probably
shareware sites like Nonags and Tucows are your best bet. If you’re willing
to learn Flash or Livemotion, they make animations which are smoother and
smaller.
I want to make sure that the form will not be submitted if they type text
into the "phone number" text box. All my attempts have failed, Could you
give me an idea of what is going on?
<.SCRIPT>
var x = 0
function checkdata() {
if ( (document.job.dobday.value.indexOf("a") == -1) ||
(document.job.dobday.value.indexOf("b") == -1) ||
(document.job.dobday.value.indexOf("c") == -1) ||
(document.job.dobday.value.indexOf("d") == -1) ||
(document.job.dobday.value.indexOf("e") == -1) ||
(document.job.dobday.value.indexOf("f") == -1) ||
(document.job.dobday.value.indexOf("g") == -1) ||
(document.job.dobday.value.indexOf("h") == -1) ||
(document.job.dobday.value.indexOf("i") == -1) ||
(document.job.dobday.value.indexOf("j") == -1) ||
(document.job.dobday.value.indexOf("k") == -1) ||
(document.job.dobday.value.indexOf("l") == -1) ||
(document.job.dobday.value.indexOf("m") == -1) ||
(document.job.dobday.value.indexOf("n") == -1) ||
(document.job.dobday.value.indexOf("o") == -1) ||
(document.job.dobday.value.indexOf("p") == -1) ||
(document.job.dobday.value.indexOf("q") == -1) ||
(document.job.dobday.value.indexOf("r") == -1) ||
(document.job.dobday.value.indexOf("s") == -1) ||
(document.job.dobday.value.indexOf("t") == -1) ||
(document.job.dobday.value.indexOf("u") == -1) ||
(document.job.dobday.value.indexOf("v") == -1) ||
(document.job.dobday.value.indexOf("w") == -1) ||
(document.job.dobday.value.indexOf("x") == -1) ||
(document.job.dobday.value.indexOf("y") == -1) ||
(document.job.dobday.value.indexOf("z") == -1) ||
(document.job.dobday.value.indexOf("!") == -1) ||
(document.job.dobday.value.indexOf("#") == -1) ||
(document.job.dobday.value.indexOf("$") == -1) ||
(document.job.dobday.value.indexOf("%") == -1) ||
(document.job.dobday.value.indexOf("^") == -1) ||
(document.job.dobday.value.indexOf("&") == -1) ||
(document.job.dobday.value.indexOf("*") == -1) ||
(document.job.dobday.value.indexOf("(") == -1) ||
(document.job.dobday.value.indexOf(")") == -1) ||
(document.job.dobday.value.indexOf("-") == -1) ||
(document.job.dobday.value.indexOf("_") == -1) ||
(document.job.dobday.value.indexOf("+") == -1) ||
(document.job.dobday.value.indexOf("=") == -1) ||
(document.job.dobday.value.indexOf("{") == -1) ||
(document.job.dobday.value.indexOf("}") == -1) ||
(document.job.dobday.value.indexOf("[") == -1) ||
(document.job.dobday.value.indexOf("]") == -1) ||
(document.job.dobday.value.indexOf("@") == -1) ||
(document.job.dobday.value.indexOf("~") == -1) ||
(document.job.dobday.value.indexOf("<.") == -1) ||
(document.job.dobday.value.indexOf(">") == -1) ||
(document.job.dobday.value.indexOf("?") == -1) ||
(document.job.dobday.value.indexOf(".") == -1) ||
(document.job.dobday.value.indexOf("/") == -1) ||
(document.job.dobday.value.indexOf("|") == -1)){x = 1}
}
if (x = 1){
alert("no letters are allowed in the phone text box");
return false;}
<./SCRIPT>
It All Together: Form Field Validation located at
https://www.htmlgoodies.com/primers/jsp/hgjsp_29.html
The example includes the validation of a numeric zip code that should be
easy enough to adapt to a phone number. It will also shorten your script
considerably.
that only numbers are entered. It goes something like this:
if(isNaN(document.job.phone.value))
{alert("Numbers only please!")}
***********************************
[May 16, 2005] Big Blue lays down rules of the road for employees engaging
in blogging.
Read the article:
http://www.internetnews.com/ent-news/article.php/3505296
Level 3 Plans Software Spin-Off
[May 16, 2005] The enterprise software and services group readies an IPO.
Read the article:
http://www.internetnews.com/bus-news/article.php/3505281
Seeing a ‘Ghost’ in The SOA Machine
[May 16, 2005] Actional rolls new agent that makes management opportunities
for non-XML or SOAP systems visible.
Read the article:
http://www.internetnews.com/ent-news/article.php/3505181
Hello? Where’s My Revenue?
[May 13, 2005] VoIP and the IP services to follow are sending cash-strapped
states to Capitol Hill with hats in hand. Who will pay?
Read the article:
http://www.internetnews.com/infra/article.php/3505086
U.S., China Clash Again Over Tech
[May 13, 2005] Washington claims Beijing’s government software procurement
rules are stacked against American companies.
Read the article:
http://www.internetnews.com/bus-news/article.php/3505106
Sun, Microsoft Get Closer
[May 13, 2005] UPDATED: Sun and Microsoft continue to rest their
differences, teaming to make Windows work with Java.
Read the article:
http://www.internetnews.com/dev-news/article.php/3504976
The Dark Side of The Force Made Me Do It
[May 13, 2005] The debut of ‘Star Wars III’ marks the end of an era for
geeks everywhere. It will also launch an ‘out of office’ wave. Call it Star
Wars-induced absenteeism.
Read the article:
http://www.internetnews.com/bus-news/article.php/3505116
Trend Micro Wins Injunction
[May 13, 2005] Fortinet can sell in the U.S. no more.
Read the article:
http://www.internetnews.com/bus-news/article.php/3504951
Microsoft Preps Thin Client For XP
[May 13, 2005] UPDATED: Redmond wants to turn obsolete PCs into thin clients
running on Windows XP.
Read the article:
http://www.internetnews.com/ent-news/article.php/3505001
Microsoft to Offer Subscription Security Service
[May 13, 2005] All-in-one PC health care service promises to cure all the
usual ills of PC usage, and compete with anti-virus vendors.
Read the article:
http://www.internetnews.com/security/article.php/3504816
Feedback Goodies
***********************************
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:
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
https://www.htmlgoodies.com/mentors/
Windows Tech Goodie of the Week
***********************************
using an XSL stylesheet, but sometimes it’s useful to take it a step further
and actually use the XML as a true data source. This sample shows you how to
use an XML file as the data source of an ASP.NET DataGrid control.
*** AND ***
Retrieving SharePoint Site Information in an ASP.NET Web Application
access SharePoint site information from an ASP.NET web application. It
should be of particular interest to SharePoint administrators who can use
the included code as a starting point for development of their own web-based
SharePoint administration application.
*** AND ***
Bubbling Events Up the Control Hierarchy
When a Button is clicked, it’s Command event is raised. But how does the
DataGrid know when this event has been raised so that it can raise it’s
ItemCommand event in response? The answer is through a process referred to
as event bubbling. In this article we’ll look at how, precisely, event
bubbling works in ASP.NET.
And Remember This …
***********************************