<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ProductCart Shopping Cart Software Forums : Default Search Text</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Default Search Text]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 14:55:03 +0000</pubDate>
  <lastBuildDate>Wed, 23 Jan 2013 14:20:38 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.productcart.com/RSS_post_feed.asp?TID=5395</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ProductCart Shopping Cart Software Forums]]></title>
   <url>https://forum.productcart.com/forum_images/pc_logo_50.png</url>
   <link>https://forum.productcart.com/</link>
  </image>
  <item>
   <title><![CDATA[Default Search Text : Have a look at Brian&amp;#039;s KnifePro...]]></title>
   <link>https://forum.productcart.com/default-search-text_topic5395_post20779.html#20779</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 5395<br /><strong>Posted:</strong> 23-January-2013 at 2:20pm<br /><br />Have a look at Brian's KnifePro site. You can see it at work there. Compare your script with his and you should be able to dial it in.]]>
   </description>
   <pubDate>Wed, 23 Jan 2013 14:20:38 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/default-search-text_topic5395_post20779.html#20779</guid>
  </item> 
  <item>
   <title><![CDATA[Default Search Text : I don&amp;#039;t know if anybody is...]]></title>
   <link>https://forum.productcart.com/default-search-text_topic5395_post20774.html#20774</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2216">nepcosignsupply</a><br /><strong>Subject:</strong> 5395<br /><strong>Posted:</strong> 23-January-2013 at 10:00am<br /><br />I don't know if anybody is still watching this, but I tried putting in that code to replace the previous line located around line 14 in smallsearchbox and nothing happened for me. I also tried just changing the value="" to something different and I got nothing. Any suggestions?]]>
   </description>
   <pubDate>Wed, 23 Jan 2013 10:00:40 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/default-search-text_topic5395_post20774.html#20774</guid>
  </item> 
  <item>
   <title><![CDATA[Default Search Text : Hi Brian,I like the use of the.defaultValue...]]></title>
   <link>https://forum.productcart.com/default-search-text_topic5395_post20644.html#20644</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 5395<br /><strong>Posted:</strong> 08-January-2013 at 9:49pm<br /><br />Hi Brian,<div><br></div><div>I like the use of the&nbsp;<span style=": rgb251, 251, 253;">.defaultValue property. It's a bit more elegant that the more literal arguments I've always used.</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">One other thing I like to do here, though, is to preserve the search phrase entered as a session variable so if the user does a search and then navigates around a bit, they can easily get back to their last search.</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">Here's the bit of server-side code for that:</span></div><div><span style=": rgb251, 251, 253;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div><span style=": rgb251, 251, 253;"><div><span ="Apple-tab-span" style="white-space:pre">	</span>'&lt;WMS: store search terms&gt;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if Len(request("keyword")&amp;"") &gt; 0 then</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>session("keyword") = request("keyword")</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>end if</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if Len(session("keyword") &amp; "") &lt; 1 then</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>session("keyword") = "Text to be displayed here"</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>end if</div></span></div><div><span style=": rgb251, 251, 253;"></pre></td></tr></table></span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div>Place that in the ASP section of code right above the search form. Then you'd modify the value property of the input field like so:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>value="&lt;%=session("keyword")%&gt;"</div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Tue, 08 Jan 2013 21:49:30 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/default-search-text_topic5395_post20644.html#20644</guid>
  </item> 
  <item>
   <title><![CDATA[Default Search Text :   Greg,Thanks for the quick...]]></title>
   <link>https://forum.productcart.com/default-search-text_topic5395_post20619.html#20619</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=932">knifepro</a><br /><strong>Subject:</strong> 5395<br /><strong>Posted:</strong> 03-January-2013 at 11:54am<br /><br />Greg,<div>&nbsp;</div><div>Thanks for the quick reply. I think I found a solution. So far it is working.</div><div>&nbsp;</div><div>Here is what I did just in case anyone else is looking:</div><div>&nbsp;</div><div>Somewhere around line 14 in smallsearchbox file you will find:</div><div>&nbsp;</div><div>&lt;input type="Text" name="keyword" size="14" value="" id="smallsearchbox" &gt;</div><div>&nbsp;</div><div>Replace with:</div><div>&nbsp;</div><div>&lt;input type="Text" name="keyword" size="14" value="Text to be displayed here" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" id="smallsearchbox" &gt;</div>]]>
   </description>
   <pubDate>Thu, 03 Jan 2013 11:54:39 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/default-search-text_topic5395_post20619.html#20619</guid>
  </item> 
  <item>
   <title><![CDATA[Default Search Text : Hi Brian - go view the source...]]></title>
   <link>https://forum.productcart.com/default-search-text_topic5395_post20618.html#20618</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=290">Greg Dinger</a><br /><strong>Subject:</strong> 5395<br /><strong>Posted:</strong> 03-January-2013 at 11:43am<br /><br />Hi Brian - go view the source on <a href="http://www.shopatdean.com/" target="_blank" rel="nofollow">http://www.shopatdean.com/</A><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>You will see code associated with the search form.&nbsp; If you need it&nbsp;physically pulled apart and presented as a solution, I can do that later but I wanted to give you a quick tap in the right direction.</DIV>]]>
   </description>
   <pubDate>Thu, 03 Jan 2013 11:43:02 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/default-search-text_topic5395_post20618.html#20618</guid>
  </item> 
  <item>
   <title><![CDATA[Default Search Text :   Can someone tell me how to...]]></title>
   <link>https://forum.productcart.com/default-search-text_topic5395_post20617.html#20617</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=932">knifepro</a><br /><strong>Subject:</strong> 5395<br /><strong>Posted:</strong> 03-January-2013 at 11:35am<br /><br />Can someone tell me how to add default text to the small search box, make it disappear on click and blur?<div>&nbsp;</div><div>Something like....</div><div>&nbsp;</div><div>Search here...</div><div>&nbsp;</div><div>Search by Sku or name...</div><div>&nbsp;</div><div>Any help would be appreciated.</div>]]>
   </description>
   <pubDate>Thu, 03 Jan 2013 11:35:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/default-search-text_topic5395_post20617.html#20617</guid>
  </item> 
 </channel>
</rss>