Welcome, Guest ( Customer Panel | Login )




 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  

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

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?

carfin
VP-CART Expert

United Kingdom
948 Posts

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

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.

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

windpro
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
0 Item(s)
$0.00