is it possible to add an image to a button on dhtmlxForm ?

Hello,
I’m using a dhtmlxForm and button like this :

formData = [{type: "button", value: 'Add', position:"absolute"},
	    {type: "button", value: 'Edit', position:"absolute", inputTop:25}]

is it possible to add an image to a button on dhtmlxForm ?

What’s up ?
Is it possible or not to add a image in a button of dhtmlxForm ?
Thx

Hello,

Try something like this:

{type: "button", value: "<img src='http://dhtmlx.com/docs/products/dhtmlxTree/codebase/imgs/csh_vista/folderClosed.gif' style='position:absolute;width:18px;height:18px;left:16px;'> <span style='margin-left:10px;'>Proceed</span>"}

Perfect !
it work great, thanks !
:smiley:
Solved

I try this solution using XML initialisation :

but it doesnt work. I have a button with written in it : Travail à effectuer

I want to make a big square button with an image in it and if possible a texte under the image.

Hi

try this:

you need to fix some styles and button bg images to change button height

<?xml version="1.0" encoding="iso-8859-1"?>

This is my XML
And this is the result
hostingpics.net/viewer.php?i … hot035.jpg

hm, works fine localy
please provide direct link?

Ok it works, it was a problem of cache. But I try with a litle image (10x10). How can I make a button 100x100?
Thank you.