BrowserHawk IQ now available! Click here for the full scoop!
Search:
Can I change the color, font, message displayed during extended property check?
Created: 5/17/2001    Updated: 9/30/2004
Q   Can I change the color, font, and message displayed during the extended property check? Can I suppress this message altogether?

A   Yes, you can specify optional parameters to customize the message displayed during the test, as well as its appearance.

For instance, you could have BrowserHawk use a black background with white text and display a message in Arial font that said 'Please wait while we test your browser...'. Or you coule have BrowserHawk display no message at all if your primary goal is to make the test completely transparent.

This is because BrowserHawk gives you the ability to alter the BODY tag, TITLE tag, and the BODY itself on the temporary page it displays while performing extended property checks.

A 'Please Wait' type of message can be helpful if you are running a test that can take a couple seconds to run such as a connection speed test for a dial-up user, or you are testing dozens of properties at once. But in most cases, tests will execute immediately making a message unnecessary.

To supress any 'Please Wait' type of message just pass in an empty string as the parameter for the PageMessage when calling the extended property method. Examples of passing in these parameters are listed below.

HOT TIP: For best results we recommend that you set the background color used for the BrowserHawk temporary test page to the same color used on your site. You do this by adding a BGCOLOR paramter and value to the BrowserHawk test page's BODY tag. Otherwise the user will notice the background color flicker as the test executes.

BrowserHawk for ActiveX

With the ActiveX version of BrowserHawk, the paramters that control the look and feel of the testing page are set using the optional parameters to the GetExtPropertiesEx method.

For example:

  bh.GetExtPropertiesEx 0, "BGCOLOR=#000000 TEXT=#FFFFFF", "Please wait", "Please wait while we test your browser..."

The parameter where the BGCOLOR and TEXT attributes are specified is added by BH to the BODY tag of the document. The next parameter is used for the title of the page (BH puts this value in between the TITLE tags), and the last parameter is the text/html displayed in the browser window itself.

BrowserHawk for .NET and Java (BH4J)

In that .NET and Java versions of BrowserHawk, the look and feel of the test page is controlled by setting properties of the ExtendedOptions class. For example:
  ExtendedOptions extOptions = new ExtendedOptions();
  extOptions.AddProperties("JavaScriptEnabled, Plugin_Flash");
  extOptions.PageTitle = "Please wait...";
  extOptions.PageMessage = "Please wait while we test your browser...";
  extOptions.BodyTag = "BGCOLOR=#000000 TEXT=#FFFFFF";
  ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(extOptions);

The BodyTag parameter is added to the html BODY tag. PageMessage is written into the BODY, and PageTitle is set to the page's TITLE tag (displayed in the title bar of the browser during the test).

For more information see the BrowserHawk documentation.

    FAQ Home  |  Search FAQ  |  Show New Items  |  Ask a FAQ  |  Notify Me  |  Most Popular     
 
 
Copyright © 1994-2020 cyScape, Inc. All Rights Reserved. ()
ASP, ASP.NET, ColdFusion MX, CFMX, JSP, PHP