Welcome, Guest ( Customer Panel | Login )




 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  

innocenti
Starting Member

USA
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 -->
</script>

<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!

Scooter
VP-CART New User

USA
102 Posts

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

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.

Thanks
S
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00