spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / column22

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

Logo

JavaScript Enhancement with VBScript
the droll pop-ups


Since JavaScript 1.0, the alert(), confirm() and prompt() methods have been important tools for communicating with the user. As we all know, however, they are extremely colorless, and uncustomizable.

Dialog Boxes We Have Known

In the Beginning (NS3-)

Navigator 3-
The Original Alert Dialog:

This grandaddy of Web dialogs certainly did what its name implied: it alerted the user. Early users, new to scripted pages, usually responded: "What is 'JavaScript,' and why is it alerting me? What have I done wrong?." The "JavaScript Alert:" part of the message was completely unnecessary, and only confused users.
The Original Confirm Dialog:

This dialog expects a yes/no response from the user. That is, a confirmation. Then why do the buttons read OK and Cancel, instead of Yes/No????
The Original Prompt Dialog:

The title bar is more informative than the title bars in the other two dialogs. But is it a Netscape User Prompt or a JavaScript Prompt? And what's the difference? And why are both messages included?

Version 4 Browsers

Navigator 4

Better. The "JavaScript" has been moved away from the message area. But what is a JavaScript Application? Again, this confuses the user. The browser name would have sufficed, and been a lot more user-friendly.

Same title bar problem and it retains the old OK/Cancel buttons.

Same title bar problem.

Explorer 4

A good, unconfusing dialog. The title bar identifies the browser and the message area contains only the message.

Only problem is the inappropriate button captions.

The old double messages have been inexplicably retained.

How many times have you wished to have some control over what is displayed in system dialogs?

Have you ever wished your dialogs could:

All of the above are possible with VBScript.


Produced by Peter Belesis and


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Installing and Using Meeplace, the Business Review CMS · Sending an HTML and Plain Text E-newsletter with ASP.NET, Part 2 · Create Multilingual Web Sites with Windows Unicode Fonts
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MySql View Technique for Grouping Crosstab Column Data · Why You Need a Mobile Web Site · Tame Web Marketing with Social Media Management

All Rights Reserved. Legal Notices.
Created: Nov. 18, 1998
Revised: Nov. 18, 1998

URL: http://www.webreference.com/dhtml/column22/js-vbNorm.html