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

Re: Button with an image.

From: Borja Bravo Alférez <borjab@dat.etsit.upm.es>
Date: Tue, 22 Mar 2005 18:29:17 +0100
Message-ID: <424055ED.3040509@dat.etsit.upm.es>
CC: www-forms@w3.org

Dear list members,

    Thank you for all your feedback.

    It was a big mistake to send the img tag without the alt attribute 
to a w3c list. But it does not change the result.
   Anyway,  I will like to comment some of your mails

    Klotz, Leigh said:

>You might try it in other browsers as well, such as FormsPlayer or Novell's Internet Explorer plug-in or the Mozilla Firefox XForms 0.1 extension that is part of the recent Firefox nightly builds.
Forms player:      worked
Novell:                didn't work*
Mozilla + plugin   worked*
X-Smiles             didn't work*

Xforms validator: didn't validate

* Both trigger and submit.

One interesting question is It is correct?

About namespaces. At first I was using xforms embebed in a xhtml2 
document. But there was no need of using xhtml2 which may have some 
different uses of the img tag so I have changed it for xhtml (transitional.)

Anne said that it i possible to use CSS to format form. I am sure that 
standard html buttons can be formated like an image but may be i should 
had made clear that it needed to be a xform button (trigger or 
submit).Anyway, Xforms are supposed to be formatted with CSS although I 
have found some problems. But Is there any way of formatting the Xform 
button to display an image instead of the label? 

I include a trimmed down example at the end. I am afraid that it won't 
be perfect XHTML as I can't validate it with the Xforms. I accept 
suggestions to make it more standard compliant anyway.  There you can 
see that the h and xf namespaces refer to xhtml 1.0 transitional and 
xforms1.0. Do I forget anything? Yes, the original thread in this list 


I hope you all have all the information need,  thank you for everything



<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//ES"

<html xmlns="http://www.w3.org/2002/06/xhtml2"

         <xf:submission id="s1" method="post" 
        <xf:submit  submission="save">

        <xf:submit appearance="minimal">
            <xf:label> <h:img src="../images/articulos_small.jpg" 
alt="articulo" /></xf:label>

        <xf:trigger appearance="minimal">
            <xf:label> <h:img src="../images/articulos_small.jpg" 
alt="articulo" /></xf:label>
Received on Tuesday, 22 March 2005 23:50:30 UTC

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