Environment
Situation
Resolution
To change the behavior of the Set as Default setting on a NetWare 6.5 Support Pack 5 server, complete the following:
In the SYS:\Apache2\htdocs\ippdocs\scripts\iprint.js, add two sections of script lines:
Section 1:
a. Near the top of the file, look for this:
// ***************************************
// CONSTANTS
// ***************************************
b. After this section, copy and paste the information below into the file:
// Constants for the option type
DEF_TYPE_OPTION_NO = 0; // Check box is not checked by default
DEF_TYPE_OPTION_YES = 1; // Check box is checked by default
DEF_TYPE_OPTION_NONE = -1; // No check box is displayed
// Set this constant to change the default check box behavior
// (See "Constants for the option type" above.)
var defTypeGbl = DEF_TYPE_OPTION_NO;
Section 2:
a. Find these two lines in the js file:
LocalizeIsinstPage();
// 1. Check To see if iPrint Client is installed
b. Between those two lines, copy and paste the information below into the file:
var deflink = document.getElementById("setasdeflink");
var deftag = document.getElementById("setasdefaultatag");
switch(defTypeGbl)
{
case 0:
deflink.checked = false;
setAsDefaultGbl = false;
break;
case 1:
deflink.checked = true;
setAsDefaultGbl = true;
break;
default:
deflink.style.visibility ="hidden";
deftag.style.visibility ="hidden";
setAsDefaultGbl= false;
}
c. After adding these two sections of scripting lines, save the changes. Modify the text after "var defTypeGbl =" to one of the following:
DEF_TYPE_OPTION_NO = 0;
DEF_TYPE_OPTION_YES = 1;
DEF_TYPE_OPTION_NONE = -1;
For a description of what these options do, read the comments in the Section 1 script shown above.
To change the behavior of the Set as Default setting on a NetWare 6.5 Support Pack 4 server, complete the following:
1. Edit setdef.htm, located in one of the following directories:
Linux Server: /var/opt/novell/iprint/htdocs/
DEF_TYPE_OPTION_YES
Displays the Set As Default check box. The check box is selected.
DEF_TYPE_OPTION_NO
Displays the Set As Default check box. The check box is not selected.
DEF_TYPE_OPTION_NONE
Hides the Set As Default check box. The check box is not selected.
3. Save the file.
Once the file is saved, the change is effective immediately.
Additional Information
This feature has three settings:
- The Set Printer as Default is not selected.
- Hide the Set Printer as Default setting.
Formerly known as TID# 10098905