You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org> on 2006/11/01 23:19:57 UTC

[jira] Created: (XAP-24) Widgets: Checkbox/RadioButton: imagePressed/imagePressedSelected should preload given image.

Widgets: Checkbox/RadioButton: imagePressed/imagePressedSelected should preload given image.
--------------------------------------------------------------------------------------------

                 Key: XAP-24
                 URL: http://issues.apache.org/jira/browse/XAP-24
             Project: XAP
          Issue Type: Bug
            Reporter: Trevor Oldak
            Priority: Trivial


Checkboxes and radiobuttons can display an image instead of the widget when they are clicked, to enhance the look and feel.
However, these images are not loaded until they are needed. Since clicks are usually very fast actions, the image won't have enough time to display. This could be avoided by preloading hte image with the javascript Image() object.
var temp=new Image(0,0);//gives the dimensions of the image
temp.src=url;
That will load the image into cache, so that even if the temp variable isn't used or is assigned a different value, the image will still be in cache.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (XAP-24) Widgets: Checkbox/RadioButton: imagePressed/imagePressedSelected should preload given image.

Posted by "Scott Boyd (JIRA)" <xa...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/XAP-24?page=all ]

Scott Boyd updated XAP-24:
--------------------------

    Component/s: Widgets

> Widgets: Checkbox/RadioButton: imagePressed/imagePressedSelected should preload given image.
> --------------------------------------------------------------------------------------------
>
>                 Key: XAP-24
>                 URL: http://issues.apache.org/jira/browse/XAP-24
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets
>            Reporter: Trevor Oldak
>            Priority: Trivial
>
> Checkboxes and radiobuttons can display an image instead of the widget when they are clicked, to enhance the look and feel.
> However, these images are not loaded until they are needed. Since clicks are usually very fast actions, the image won't have enough time to display. This could be avoided by preloading hte image with the javascript Image() object.
> var temp=new Image(0,0);//gives the dimensions of the image
> temp.src=url;
> That will load the image into cache, so that even if the temp variable isn't used or is assigned a different value, the image will still be in cache.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira