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-ASP Shopping Cart Customer Forum

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

 All Forums
 VPCart Forum
 Problems and bugs
 on click "clearfield" doesn''t work
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

12 Posts

Posted - November 01 2008 :  00:47:40  Show Profile  Reply with Quote
On a page outside of the shopping cart how do you get the search box to clear the field when the box is clicked. I can get it to function if I write the code

<script language="javascript" src="vs350.js" type="text/javascript"></script>
<script language="JavaScript" type="text/JavaScript">

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

in the <head> of the page. The shoppage_header file functions ok but it doesn't pass it on to the file using that header outside of the shopping folder or is it possible the header of the file outside of the shopping folder is not linking to the shoppage_header file?

VP-ASP Expert

United Kingdom
948 Posts

Posted - November 03 2008 :  04:23:41  Show Profile  Reply with Quote

your file that is outside the shopping folder will not work properly if you include shoppageheader.htm because the header uses functions that are called from your shopping database eg. the search function, navigation etc.


Go to Top of Page

Starting Member

12 Posts

Posted - November 03 2008 :  07:04:00  Show Profile  Reply with Quote
Thanks for your help. If I write the java script in the head it seems to function ok. Thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000