|
|
Custom Search Code Snippet Bordering HTML Nexternal.NET Shopping Cart |
Question:In my Nexternal Classic store, I have a custom search box in my bordering html. What search code should I use in Nexternal.NET in my bordering HTML? |
Response:
If you want to put a custom search box, the form will need a new value for the action parameter. You might consider the code below. Also, be sure to turn on the Use Search (OMS) in Settings/Boolean Options.
<script type="text/javascript">
<!--
function validateSearch(FForm)
{
if (FForm.Keyword.value == "search...")
{
alert("Please enter a valid search term");
FForm.Keyword.value='';
FForm.Keyword.focus();
return false;
}
else
{
return true;
}
}
//-->
</script>
<form action="categories.aspx" method="get" id="searchForm" onsubmit='return validateSearch(this);'>
<input id="searchField" type="text" name="Keyword" value="search..." onclick="this.value=''" onblur="if (this.value.length==0) {this.value = 'search...';}" />
<input type="submit" value="Go" id="searchButton" />
</form>
<br />
<a href="search.aspx">Advanced Search</a>
|
|
|
|