Announcement

Collapse
No announcement yet.

Default Text In Quick Search Box Doesn't Disappear

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Default Text In Quick Search Box Doesn't Disappear

    Hi,

    I've just been changing some elements with the Quick Search box and have found since uploading the revised version the default words "Search" which appear in the quick search box do not disappear when you click in. Instead I have to delete the word search and then enter the search term. Like a muppet I forgot to back up my original layout and wonder whether anyone has a couple of minutes to have a look at the following code to identify why (or what could be added)?

    Thanks in advance, Dave

    Code:
    <div class="quick-search">
    <form name="simplesearch" method="get" action="<actinic:variable name="OnlineScriptURL" value="Search Script URL" />" onsubmit="this.SS.value = this.SS.value.replace(/s$/i, ''); return true;">
    
    	<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
    		<!-- Hidden field when in trial mode -->
    		<input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
    	</actinic:block>
    
    	<input type="hidden" name="page" value="search" />
    	<input type="text" name="SS" size="18" style="vertical-align:middle;" value="Search" onfocus="this.value='';" class="quick-search-text" />&nbsp;
    	<input type="hidden" name="PR" value="-1" />
    	<input type="hidden" name="TB" value="O" />
    	<span class="button-wrapper quick-search-button-wrapper">
    <input type="image" style="vertical-align:middle;" value="ACTION" name="search" src="SearchButton.gif" height="28" alt="<actinic:variable name="QuickSearchButtonText" />" /><a href="search.html"><img src="AdvSearchButton.gif" height="28" border="0" style="vertical-align:middle;"><!-- "<u>Advanced Search</u></a></p> -->
    <!-- <input class="button quick-search-button" type="submit" name="ACTION" value="<actinic:variable name="QuickSearchButtonText" />" /> -->
    	</span>
    
    </form>
    </div>

    #2
    The problem is your search input value needs to say "Quick Search" not "Search". The code gets replaced on page with Javascript.
    Peblaco

    Comment


      #3
      It's amazing how such a simple change can cause havoc.

      Thank you so much Peblaco.

      Comment

      Working...
      X