WebsiteBaker Support (2.8.x) > Bakery Shop
Pagesettings (overview)
freeSbee:
Bakery just uses the name attribute for controlling. But since the value attribute hast to be set and must not be empty just add it to the <input type="image" ... /> tag:
--- Code: ---<form action="[SHOP_URL]" method="post">
<input type="image" src="http://www.yourwebsite/your_directory/your_image.img>" name="view_cart" value="[VIEW_CART]" alt="[VIEW_CART]" class="mod_bakery_bt_cart_ f" />
</form>
--- End code ---
Regards Christoph
DarkViper:
value = "" inside an input tag of type image can be a trap to run in an issuse.
--- Quote ---Note:
For graphical buttons not only of any existing value in the attribute value is transferred, but additionally the coordinates of the click on the image. The (as of PHP from name_x / name_y) states, two additional values sent in the form and Name.x name.y. IE will only send the coordinates.
--- End quote ---
(translated by google from german website SelfHTML
so the better and more secure solution is to use a input-hidden tag.
freeSbee:
--- Quote from: DarkViper on September 02, 2011, 12:03:12 PM ---value = "" inside an input tag of type image can be a trap to run in an issuse.
--- End quote ---
Since version 1.5.3 Bakery provides a bugfix for IE, that takes car of that:
http://www.bakery-shop.ch/#version_153
Regards Christoph
jacobi22:
I use CSS with the Original Code (no Image for Submit-Button inside the Code)
my CSS for the submit-Button
....
input[type=submit], input[type=reset] {
background: #ffffff url(../img/submit_button.png) repeat-x;
color: #000000;
}
input[type=submit]:hover, input[type=reset]:hover {
background: #ffffff url(../img/submit_button_on.png) repeat-x;
color: #000000;
}
-----
Shefra:
Thanks for the answers. DarkViper your solution did it....
Thanks again.....
Navigation
[0] Message Index
[*] Previous page
Go to full version