| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Buttons as Images in XC - why? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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:
With this.. Code:
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 |
|||||||
#2
|
|||||||
|
|||||||
![]() Personal preference. The buttons are currently designed as three cell tables, which allow the button to auto-stretch based on the text entered for the button. I suspect it was done this way to make it easy for non-html inclined people to edit the buttons.
Personally, I usually replace all the buttons with custom graphics by either creating a new template for each button, or by hard coding the buttons into the templates themselves.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() I think they used this method for the visual aspect. There is so much more you can do with images that use JS actions. I know that an eye catching design isn't everything and simplicity is sometimes better but when you're selling in a highly competitive industry, you'd be surprised at how much your design influences your sales.
Like you said, I think a lot of it's personal preference. I guess you already know my preference. ![]()
__________________
~zilker uummm...perhaps you should tell me again. http://www.designertrends.com Version 4.0.6 Unix |
|||||||
#4
|
|||||||||
|
|||||||||
![]() using JS also stops ppl from using the back button and getting the pop up message about "post form" and do you want to resubmit the data.
If you use the form button. the browser will track the form action as a page in the history. When you use JS, it does not. If you hit Back it goes directly to the form entry screen and you get no pop up. |
|||||||||
#5
|
|||||||
|
|||||||
![]() Thanks for the advice on this... Will have a play, I think...
Cheers,
__________________
X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux |
|||||||
|
|||
X-Cart forums © 2001-2020
|