Create an account to edit articles | See Formatting Syntax for Wiki syntax | We look forward to your contribution!
You are here: The ProductCart Encyclopedia » How To's » Removing the "Please wait..." Dialog Window from Small Search Box
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.
- 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"-->
- Open your small search box file in a text editor, such as notepad or Dreamweaver.
- Edit the following lines of code if using SmallSearchBox.asp:
- Find:
<form action="showsearchresults.asp" name="search" method="get" onSubmit="pcf_CheckSearchBox();" class="pcForms">
- Replace with:
<form action="showsearchresults.asp" name="search" method="get" class="pcForms">
- 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)) %>
- Edit the following lines of code if using SmallSearchBox08.asp:
- Find:
<a href="javascript:document.search.submit()" onclick="pcf_CheckSearchBox();" title="Search">
- Replace with:
<a href="javascript:document.search.submit()" title="Search">
- 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)) %>
- Save the file and upload it to your server.
Trace: » Guidelines to add your Add-on » Updating Inventory Levels » eBay Add-on Quick Glossary » Google's Search Engine Optimization Starter Guide and ProductCart » Miscellaneous Settings » Default Preferences » Managing Countries and States/Provinces » Locating and Editing Products » Showing different content based on the customer type » Removing the "Please wait..." Dialog Window from Small Search Box