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

        

Reply via email to