Project

General

Profile

new to WT

Added by Ahmed Abdelrazek about 9 years ago

hi,

I'm an embedded c developer for over 10 years and just started using WT to develop my first web app. I'm exploring examples and trying different widgets.

Now I'm struggling to find where in the widgetgallery example the small images of the collapsible panel gets linked with the object?

I tried to use the WPanel in my own app and set collapsible to true, but the little image is not there!

I know the collapse.gif and expand.gif files are available under /usr/share/Wt/resources/

Thanks,

Ahmed


Replies (1)

RE: new to WT - Added by Wim Dumon about 9 years ago

Hi Ahmed,

The browser will ask those files to the web server, so the webserver must be told to serve them. For the built-in httpd, all files in the so-called docroot directory, will be accessible to the browser (through HTTP).

You'll have noticed that you specify the docroot parameter when you start your wt executable (---docroot=., or ---docroot=docroot). If you put the 'resources' folder or a link to it in the docroot directory, the browser will be able to retrieve them.

BR,

Wim.

    (1-1/1)