spacer
Yehuda Shiran August 24, 2001
Forcing the Trusted Application's Status Bar
Tips: August 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

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

You can control the appearance of the status bar at the bottom of the dialog box. The default behavior depends on whether the application is trusted or not. An HTA is a trusted application. Pop up this simple HTA. When asked, choose "Open this file ..." instead of "Save this file to disk." The HTA window will pop up. Click the Go Away button. The bar at the bottom edge of a window is referred to as the "status bar." By default, dialog boxes pop up with the status bar. Trusted applications, on the other hand, pop up without the status bar. Let's pop up a simple modeless dialog box. Now, pop up again the HTA. Click the Pop A Dialog Box button. You'll see that the dialog box does not display the status bar.

You can change the default behaviors of trusted and untrusted applications with respect to the status bar. Let's see an untrusted application without the status bar, accomplished by:

window.showModelessDialog('010824.html','','dialogLeft:10;status:no')
Let's force a trusted application to pop up a dialog box with the status bar. This HTA includes the following call:

window.showModalDialog('010824.html','','status:yes');
Click the Pop A Dialog Box button. Observe the status bar at the bottom of the dialog box. The possible values of the status property are: yes, no, 1, 0, on, and off. Their semantics are intuitive.

For more on modal and modeless dialog boxes, go to Column 90, Modal and Modeless Dialog Boxes.


People who read this tip also read these tips:

Look for similar tips by subject:


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 >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger