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

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

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

webref The latest from WebReference.com Browse >
Administering MySQL Databases on the Web Using PHP · Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
So what is an Oracle Nested Table? · E-Discovery Architectures 101 · eBay Embraces Big Sellers, Cyber Monday Trends