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