English

How To: Change the FIND tool search string to be case insensitive

Summary

Instructions provided describe how to change the FIND tool search string to be case-insensitive. When using the FIND tool in the HTML Viewer, the Search string entered is case-sensitive. This is inconvenient for the end user who is not familiar with the data being used. This article describes how to make the search case-insensitive.

Procedure

Follow the steps below after opening 'ArcIMSParam.js' file in a text editor:

Note:
ArcIMSParam.js is a Javascript file located in the Web site directory created.

Look for the following line:

Code:
var queryCaseInsensitive=false;

Change the above line to:

Code:
var queryCaseInsensitive=true;

The prior process prevents the Search string from being case-sensitive. By default, HTML Viewer displays a message in the Viewer that says 'Search is Case-Sensitive', which is not valid after the change has been made. There are two ways to correct this problem listed below:

Note:
Follow either option below, but not both.

  • 1. Navigate to the Javascript folder located inside the Web site folder and open the file 'aimsResource.js' in a text editor.

    2. Search for the following line:

    Code:
    msgList[79] = "Search is Case-Sensitive";

    3. Change the above line appropriately as needed. For example:

    Code:
    msgList[79] = "Search is NOT Case-Sensitive";

  • This option requires code changes, but is more flexible since the message displayed changes as the value of variable set in ArcIMSParam.js file is changed.

    1. Navigate to the Web site folder and open the file 'findForm.htm' in a text editor.

    2. Search for the following line:

    Code:
    document.writeln('<FONT FACE="Arial" SIZE="-2"><B>' + t_find.msgList[79] + '</B></FONT>');

    3. Change the above line to:

    Code:
    if (parent.MapFrame.queryCaseInsensitive) {
    document.writeln('<FONT FACE="Arial" SIZE="-2"><B>' + "Search is NOT Case-Sensitive"+ '</B></FONT>');
    } else {
    document.writeln('<FONT FACE="Arial" SIZE="-2"><B>' + t_find.msgList[79] + '</B></FONT>');
    }