xforms-help-image

View: New views
6 Messages — Rating Filter:   Alert me  

xforms-help-image

by Kalle Säilä :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm just wondering is there an easy/right way to replace the xforms-help-image.

I'm currently using following css code to replace the image:

.xforms-help-image {
    width: 0px;
    height: 0px;
    padding: 8px 8px 8px 8px;
    background-image: url(icons/help.png);
    background-repeat: no-repeat;
}

in which the help.png is my 16x16 icon.

-Kalle


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: xforms-help-image

by Erik Bruchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looks easy enough to me. How much easier would you like this to be?

-Erik

On Jul 22, 2008, at 5:24 AM, Kalle Säilä wrote:

> Hi,
>
> I'm just wondering is there an easy/right way to replace the xforms-
> help-image.
>
> I'm currently using following css code to replace the image:
>
> .xforms-help-image {
>     width: 0px;
>     height: 0px;
>     padding: 8px 8px 8px 8px;
>     background-image: url(icons/help.png);
>     background-repeat: no-repeat;
> }
>
> in which the help.png is my 16x16 icon.
>
> -Kalle
>
> --
> You receive this message as a subscriber of the ops-users@...  
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@...
> For general help: mailto:sympa@...?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Re: xforms-help-image

by Kalle Säilä :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your answer. Maybe my choise of words wasn't right but I just wanted to know if there is a way to actually replace the image instead of just hiding it.

-Kalle

2008/7/23 Erik Bruchez <ebruchez@...>:
Looks easy enough to me. How much easier would you like this to be?

-Erik


On Jul 22, 2008, at 5:24 AM, Kalle Säilä wrote:

Hi,

I'm just wondering is there an easy/right way to replace the xforms-help-image.

I'm currently using following css code to replace the image:

.xforms-help-image {
   width: 0px;
   height: 0px;
   padding: 8px 8px 8px 8px;
   background-image: url(icons/help.png);
   background-repeat: no-repeat;
}

in which the help.png is my 16x16 icon.

-Kalle

--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Re: Re: xforms-help-image

by .::: Markku :::. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> Looks easy enough to me. How much easier would you like this to be?

In my opinion, if the original XForms help image would have been
implemented using, for example, the <div> or <span> tag plus defining the
XForms help image with CSS as a background image instead of using the
<img> tag, then it would be way more easier and obvious to replace the
XForms help image just by overriding the CSS background image.

Well... anywya, this is a really minor thing and it's good to know at
least a work around for the problem if needed.

Regards


-Markku


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Re: Re: Re: xforms-help-image

by Erik Bruchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>> Looks easy enough to me. How much easier would you like this to be?

>
> In my opinion, if the original XForms help image would have been  
> implemented using, for example, the <div> or <span> tag plus  
> defining the XForms help image with CSS as a background image  
> instead of using the <img> tag, then it would be way more easier and  
> obvious to replace the XForms help image just by overriding the CSS  
> background image.
>
> Well... anywya, this is a really minor thing and it's good to know  
> at least a work around for the problem if needed.
I see. The reason we use a native <img> element is that IE 6 has a  
tendency to reload background images for no good reason, causing  
sometimes hundreds of hits on the server for the same image. It is a  
horrible bug in a horrible browser, but it's there nonetheless and we  
had to deal with it. A CSS background image is more flexible in  
general of course.

What you can do however is put your own image as:

   RESOURCES/ops/images/xforms/help.png

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Re: Re: Re: Re: xforms-help-image

by .::: Markku :::. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I see. The reason we use a native <img> element is that IE 6 has a tendency
> to reload background images for no good reason, causing sometimes hundreds of
> hits on the server for the same image. It is a horrible bug in a horrible
> browser, but it's there nonetheless and we had to deal with it. A CSS
> background image is more flexible in general of course.
>
> What you can do however is put your own image as:
>
> RESOURCES/ops/images/xforms/help.png

Okay, now I see the true reason behind your choice of implementation.
Makes sense.

Replacing the original xforms-help-image resource is a great idea if one
is using Orbeon Forms XForms Filter for a single web application.
However, if Orbeon Forms XForms Filter is used by multiple web
applications running on the same server then the change would, of course,
have an affect on all the web applications using it, which might not be
what the developer of a single web application want to/is allowed to do.

In addition, it will be easier to update Orbeon Forms to a newer version
because no modifications need to be made--just replace the Orbeon Forms
*.war file.

For these reasons, I think overriding xforms-help-image CSS rules in
your own web application is the way to go.

Regards


-Markku


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
LightInTheBox - Buy quality products at wholesale price!