Communicator

CANVAS MODE SYNTAX


Netscape Communicator's enhanced canvas mode lets Netscape Navigator 4.0 support true kiosk applications by displaying pages without any browser toolbars, menus, or borders. This feature lets developers create kiosk applications like those already found in malls and airports and design pages that will immerse and guide the user.

TO VIEW THE DEMO IN CANVAS MODE
In Netscape Communicator Preview Release 2, canvas mode can be enabled only by a special command line switch for the Windows platform. In addition, running the browser with canvas mode enabled may be insecure. In future releases and in the final version, enhanced canvas mode will require signed JavaScript, but will not require Communicator to be started in a special mode.

To view the Stella Chelsea layers demo in canvas mode, you must launch Navigator 4.0 with a -tb command line switch. To do this, modify the Navigator 4.0 shortcut (use a right mouse-button click to choose properties) by adding a -tb after "netscape.exe."







TO PROGRAM CANVAS MODE
To use enhanced canvas mode, developers must open a new window with the following JavaScript code. This code will open a full-screen window with no chrome and create a page that will not display browser menus, scroll bars, or toolbars.

window.open('pageURL', 'windowName','titlebar=no,left=-1,top=-1,
width=screenWidth, height=screenHeight,alwaysRaised=yes');

Note that values for screen width and screen height must be specified. Future versions of Navigator 4.0 will provide properties for determining these values and will also replace the list of features specified above with a new attribute using the following code:

window.open('pageURL', 'windowName', 'type=fullWindow');


 
Corporate Sales: 650/937-2555
Personal Sales: 650/937-3777
Government Sales: 650/937-3678
If you have any questions, please visit Customer Service, or contact your nearest sales office. · Copyright © 1997 Netscape Communications Corporation. · This site powered by Netscape SuiteSpot servers.