Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-16 03:20:24

jim_01
Member
Registered: 2008-01-17
Posts: 35

Button value in IE

Hi,

I’m majorly tearing my hair out on this. Essentially I have edited a plugin and have a button like this:

<input type=“image” name=“add” value=“Add to cart” title=“Add to cart” alt=“Add to cart” src=”.addtocart.gif”/>

but when I click on it in IE it won’t pass the button name and title (add=Add+to+cart), whereas in firefox, safari eetc. It does.

IE bad
http://www.site.com/cart/?price=6&shipping=2&title=itemone&itemid=13&imageurl=http%3A%2F%2Fwww.ohthewoe.com%2Fimages%2F3.jpg&qty=1&add.x=86&add.y=9

Firefox good
http://www.site.com/cart/?price=6&shipping=2&title=itemone&itemid=13&imageurl=http%3A%2F%2Fwww.ohthewoe.com%2Fimages%2F3.jpg&qty=1&add.x=86&add.y=12&add=Add+to+cart

If anyone can help me get this working I would be super happy!

Last edited by jim_01 (2008-04-16 04:29:40)

Offline

#2 2008-04-16 07:17:22

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Button value in IE

jim_01 wrote:

but when I click on it in IE it won’t pass the button name and title

Not the title, the value – title is just tooltip. But why don’t you make two different inputs, also you could do that button with CSS and not with image type input.

In example:

<input type="hidden" name="add" value="Add to cart" />
<input type="submit" value="Add to cart" title="Add to cart" />

Or something like:

<input type="hidden" name="add" value="Add to cart" />
<input type="image" title="Add to cart" src=".addtocart.gif" />

Offline

Board footer

Powered by FluxBB