PDA

View Full Version : [CLOSED]Icon not displaying within button


Kurt Schrauwen
03-02-2010, 11:42 AM
Dears,

We are new in the world of Valence and are testing the environment.
And the first questions are arrived.

I have in a tbar a button with an icon, the button is shown and it works but the icon is not shown.

example :

{
xtype: 'tbbutton',
cls:'x-btn-text-icon',
icon:'images/bomb.png',
text:'Tha Bomb'
}

I have put the icon file in the images pam as in the example.

Also when I have just an standart html file with pictures in it they are not shown in the valance environment, all the other data is ok.

Is there a special map where I should put the images ?

Greetings,
Kurt

sean.lanktree
03-02-2010, 12:10 PM
Hi Kurt -

Welcome to the forum....

I imagine that the Apache server is blocking access to the images that you are specifying. The standard server configuration packaged with Valence blocks access to all directories except the ones necessary for Valence to operate. Thus, you may need to edit your Valence21 server configuration file by adding a new directive to allow access to the path where you placed your images. Otherwise, you can place your images in the vvresources folder within /valence-2.1, access to this folder is already open.

Do you have Firebug installed? If so, attempt to open your page while you have the "Net" tab selected in Firebug. This will show you any errors that are occurring and should give us a better clue as to where the images are attempted to be loaded from and why it does not work.

sean.lanktree
03-02-2010, 12:17 PM
For more information on editing the Valence21 Apache server instance settings, reference chapter 4 in the Valence Manual.

http://www.cnxcorp.com/downloads/pdf/valencemanual2-1.pdf

Kurt Schrauwen
03-03-2010, 05:59 AM
Hai sean.lanktree,

That was indeed the problem thanks for the info.

Regards,
Kurt