W3C home > Mailing lists > Public > www-forms@w3.org > March 2005

Button with an image.

From: Borja Bravo Alférez <borjab@dat.etsit.upm.es>
Date: Thu, 17 Mar 2005 20:42:23 +0100
Message-ID: <4239DD9F.9020107@dat.etsit.upm.es>
To: www-forms@w3.org

Dear list members,

    I am working in a Xform application and someone made something like:

        <xf:submit submission="grabar">
                            <h:img src="../images/cmdSave.gif" />

The validator and Xsmiles think that it is bad code. I think as some 
browsers can't read an image. However I think there must be a way of 
implementing an xform equivalent of an botton with an image on it. Isn't 
it? I hope you can help me,

Thanks in advance,


P.D: By the way. I have tried

        <xf:submit submission="grabar">
                <xf:label> Save </xf:label>
                            <h:img src="../images/cmdSave.gif" />
It displays the image next to the button, but:
A) we need to remove the text of the label
B) The image can't trigger events.
Received on Monday, 21 March 2005 15:05:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:14 UTC