Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

add a Clear button on the orders.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-25-2006, 08:08 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default add a Clear button on the orders.tpl

On the orders.tpl where the searches are made for orders. How can I add a clear button; that will clear any all data entered in the the input fields?

So if I made a search for orders purchases made for $50, then when I get back to the orders page i select the clear button and it will clear any input that was entered into the search fields?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 06-26-2006, 05:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

A typical clear form button should work....input type="reset"
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-27-2006, 08:50 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I made the clear button like you described below.

Code:
<INPUT type="reset" value="Clear" >

It works when write text in an input field and then select the clear button clear the inputed text.
If a search is submitted and I click on the "clear button" the text in the input field doesnt clear. How can I get that to clear?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:44 PM.

   

 
X-Cart forums © 2001-2020