Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.
Hi,
can anybody help me and tell me how the java script should look like for this request - I do not get it
If the mouse hovers over a push the background color shall be changed like this (I suppose property "onFocus" is the correct one?):
if application theme is "Orange" the "onFocus" property of a push button shall be set to background-color = "Grey".
Otherwise background-color should be "Blue".
And it would be nice if the cursor changes to "Hand" if the button gets in focus - can this be done in any way?
Here is a hack you could use in the meantime. In your button extension find the enabled option, set it to dynamic mode and edit the script. As long as the last line of the script is returnValue=true; then your script should keep the button active.
Change the colors to suit your needs. You can use a # color code or an rgb function.
$(this._fieldDiv).find("button").hover(
function() {
$( this ).css({backgroundColor: "red"} );
}, function() {
$( this ).css({backgroundColor: "blue"} );
}
);