Announcement:Materials and articles for ProductCart 5 can be found at our brand new support center.

Create an account to edit articles | See Formatting Syntax for Wiki syntax | We look forward to your contribution!

Removing the "Please wait..." Dialog Window from Small Search Box

In v3.12 and up the small search box includes additional JavaScript to control the “Pease wait… searching” dialog window. The following article explains how to remove the dialog window from the small search box.

  1. Download the file SmallSearchBox.asp or SmallSearchBox08.asp. Stores created before v3.5 are most likely using SmallSearchBox.asp. While stores created with v3.5 and above are probably using SmallSearchBox08.asp. If you are not sure which file you are using you can try this trick. Open the file header.asp and look for the include code. The include will show you which file you are using. It will look something like this:
    <!--#include file="SmallSearchBox08.asp"-->

  2. Open your small search box file in a text editor, such as notepad or Dreamweaver.
  3. Edit the following lines of code if using SmallSearchBox.asp:
    1. Find:

      <form action="showsearchresults.asp" name="search" method="get" onSubmit="pcf_CheckSearchBox();" class="pcForms">

    2. Replace with:

      <form action="showsearchresults.asp" name="search" method="get" class="pcForms">

    3. Remove:

      <script language="JavaScript">
      <!--
      function pcf_CheckSearchBox() {
       	pcv_strTextBox = document.getElementById("smallsearchbox").value;
      	if (pcv_strTextBox != "") {
      		document.getElementById('small_search').onclick();
      	}
      }
      //-->
      </script>
      <%
      Response.Write(pcf_InitializePrototype())
      response.Write(pcf_ModalWindow(dictLanguage.Item(Session("language")&"_advSrca_23"), "small_search", 200))
      %>

  4. Edit the following lines of code if using SmallSearchBox08.asp:
    1. Find:

      <a href="javascript:document.search.submit()" onclick="pcf_CheckSearchBox();" title="Search">

    2. Replace with:

      <a href="javascript:document.search.submit()" title="Search">

    3. Remove:

      <script language="JavaScript">
      <!--
      function pcf_CheckSearchBox() {
       	pcv_strTextBox = document.getElementById("smallsearchbox").value;
      	if (pcv_strTextBox != "") {
      		document.getElementById('small_search').onclick();
      	}
      }
      //-->
      </script>
      <%
      Response.Write(pcf_InitializePrototype())
      response.Write(pcf_ModalWindow(dictLanguage.Item(Session("language")&"_advSrca_23"), "small_search", 200))
      %>

  5. Save the file and upload it to your server.


QR Code
QR Code Removing the &quot;Please wait...&quot; Dialog Window from Small Search Box (generated for current page)