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

Yehuda Shiran, Ph.D.
Doc JavaScript

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

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:

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