View Single Post
  #1  
Old 04-29-2005, 10:40 AM
 
jb5ep jb5ep is offline
 

Advanced Member
  
Join Date: Apr 2005
Location: U.K.
Posts: 65
 

Default Buttons as Images in XC - why?

Does anyone know the background as to why the default XC themes use images and Jscript actions to submit forms, rather than good ole plain <form> buttons?

Admitedly, i've only looked at one button so far...which is the submit button for the search field in the header. For example, in /customer/search.tpl, i've replaced this:

Code:
<TD valign="middle"> <INPUT class="inputfield" type="text" name="posted_data[substring]" size="16" value="{$search_prefilled.substring|escape}"> </TD> <TD valign="middle"> {include file="buttons/search_head.tpl"} </TD>

With this..

Code:
<TD valign="middle"> <INPUT type="text" name="posted_data[substring]" size="16" value="{$search_prefilled.substring|escape}"> </TD> <TD width="20"><input type="submit" name="Submit" value="{$lng.lbl_search}" class="button"></TD>

If this works site-wide, guess I could just have a single tpl include for a 'Go' button.Is there something glaringly obvious i'm overlooking here (as to why it's better to use images), or is it just a matter of taste?

Cheers,
JB
__________________
X-Cart 4.0.17
ezUpsell
PHP 4.4.1
MySQL 4.0.25-standard
Apache 1.3.34
Linux
Reply With Quote