VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Problems and bugs
 repost : ''search this site'' text not disappearing
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

16 Posts

Posted - September 13 2006 :  19:43:32  Show Profile  Visit innocenti's Homepage  Reply with Quote
for some reason the script is not functioning correctly,in any mac browser, and the text remains in the search box after clicking in it (windows apparently seems to work)

here is the code from shoppage_header:

<script language="JavaScript" type="text/JavaScript">
<!-- Begin
function clearfield(){
if (document.form3.keyword.value == "search this site")
document.form3.keyword.value = "";
// End -->

<input class="searchfield" type="text" name="keyword" size="19" style="width:60" value="<%=getlang("langsearchboxdefault")%>" onClick="clearfield()">

an example: http://www.lambretta.net/shoptest/shopdisplaycategories.asp

huge thanks!

VP-ASP New User

102 Posts

Posted - September 13 2006 :  23:55:27  Show Profile  Reply with Quote

i change mine site to use lang instead.

in shoppage_header.htm I change the javascript line

if (document.form3.keyword.value == "search this site")

to look like

if (document.form3.keyword.value == "<%=getlang("langsearchboxdefault")%>")

This work ok now.

I am sending this to VP-SP too so they know about fix.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000