Feedback

  • Contents
 

Agent Search Page Example

Web authors can create a similar page by embedding a call to it within their HTML, as shown in this sample search page code:

<html>
  <head>
    <title>Simple Example</title>
    <script type="text/javascript" src="./js/external/jquery.min.js"></script>
    <script type="text/javascript" src="./js/WebSearch/switchover.js"></script>
    </script>
  </head>

  <body>
    <form method="POST" >
      First Name: <input size="15" name="FirstName" class="textinput"> <br>
      Last Name:  <input size="15" name="LastName" class="textinput" align="right"> <br>
      Department: <select name="Department">
                    <option value="Marketing">Marketing</option>
                    <option value="Sales"> Sales </option>
                  </select>

      <input type="hidden" name="SearchFilterOut" value="">
      <input type="hidden" name="DefaultSearchWorkgroup" value="Marketing">
      <input type="hidden" name="PageTitle" value="Search Results">
      <input type="hidden" name="BannerImage" value="">
      <input type="hidden" name="UserData" value="User Name&User@e-mail.com&CompanyName&555.444.1234&Address1&Address2&Address3&City&State&ZipCode">
      <br>
      <br>
      <input type="SUBMIT" value="Search" id=submit1 name=submit1 onClick='ININ.Switchover.configureFormsForSwitchover("./WebServices/Server1/", "./WebServices/Server2/", "doHTMLRequest?&event=WebSearch");'>
    </form>
  </body>
</html>
  

The following table defines the input arguments for the web search page.

Hidden Argument Value

FirstName

The First Name value for the search

LastName

The Last Name value for the search.

Department

The Department value for the search.

PageTitle

Sets the title text on web search pages. The default page title is "Interact with Us!"

BannerImage

Specifies the banner image at the top of the page. The default is Nav2Banner.gif.

UserData

Passes data that you collect about the visitor, some of it critical to the performance of the web handlers. For example if a visitor asks for a callback request, the handlers need a telephone number. The web author is responsible to get this information from the visitor and put it into the following format with each value separated by an ampersand (&). The order is important. If a value is missing, hold its place with ampersands. For example

value=Name&e-mail&&phone&&&&&&

Visitor data values:
Name – The visitor's name. Required.
E-mail address – The visitor's e-mail address. Required.
Company Name – The visitor's Company.
Phone Number – The visitor's phone number. Required.
   (Verify the format of the number entered.)
Address1 – The visitor's address.
Address2 - More address information.
Address3 – More address information.
City - The visitor's city.
State – The visitor's state.
Zip Code – The visitor's Zip Code.
          

SearchFilterOut

Specifies one or more CIC workgroups hidden from visitors when they specify a search. A visitor can search by first name, last name, or CIC workgroup. If this input argument is missing or left blank, then the visitor can choose to search from all CIC workgroups. If there are workgroups that you don't want displayed in the drop-down list box on the search option, list them in this argument, separated buy ampersands (&).

DefaultSearchWorkgroup

Specifies the default search workgroup in the drop-down list box of searchable workgroups. If missing or blank, no default workgroup appears in the drop-down list box.

The preceding code sample produces this search page:

System_WebSearch_sample_page_02

Clicking Search produces the search results page, which the System_WebSearch handler generates.

search-results-page-01cr1

You can customize the images by changing the images included with Interaction Web Tools. To customize other aspects of the search results page, customize the System_WebSearch.ihd handler.