Re: Button with an image.

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 
was: 

    http://lists.w3.org/Archives/Public/www-forms/2005Mar/0066.html

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

Regards,

Borja




<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//ES"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/2002/06/xhtml2"
 xmlns:h="http://www.w3.org/2002/06/xhtml2"
 xmlns:xf="http://www.w3.org/2002/xforms">

<head>
  <title>Artículos</title>
    <xf:model>
         <xf:submission id="s1" method="post" 
action="http://xforms.dstc.edu.au/cgi-bin/test.cgi"/>
    </xf:model>
</head>
<body>
        <xf:submit  submission="save">
            <xf:label>Salvar</xf:label>
        </xf:submit>

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

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

Received on Tuesday, 22 March 2005 23:50:30 UTC