[Chameleon] makeButton and using parameters

bartvde at xs4all.nl bartvde at xs4all.nl
Wed May 5 08:02:03 EDT 2004


Hi list,

sorry for all these button questions the last days, but maybe it will be
useful for people upgrading their widgets in the near future (I will post
my HOWTO in a few days on this list).

I have the following problem. I have 2 buttons created with makeButton in
a popup which use the same javascript function but use a different value
for the parameter which needs to be passed in the js function, i.e.:

						<?php echo makeButton( 'download', 'layout',
'GeoservicesPrintWidget', 'images/icon_save.png',
trim($oMLT->get("23", "Download")), trim($oMLT->get("23",
"Download")), array( 'width' => 75 )); ?>
						<?php echo makeButton( 'download', 'map', 'GeoservicesPrintWidget',
'images/icon_save.png', trim($oMLT->get("23", "Download")),
trim($oMLT->get("23", "Download")), array( 'width' => 75 )); ?>

The problem now is that the second button which uses the same javascript
function is inactive, i.e. cannot be clicked on and does not hover.

Am I doing something wrong?

Best regards,
Bart


More information about the Chameleon mailing list