spacer

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

home / experts / dhtml / column22

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

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

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