Changing Button Style onClick
Posted: Mon Apr 25, 2011 11:24 am
I am using Gradient Buttons as a menu across the top of our web page. When the page that is associated with a button is displayed I want the button to be 'Black Marble' otherwise I want the button to be 'Bright Gold'. I have defined a field and bound it to the 'button style' property for each button and was setting this in the RPGLE program to the desired value.
I was trying to set the button style property in the .onClick event for each button to 'Black Marble' but this does not change the style of the button.
Here's how the buttons look when the initial page is displayed: Here is how the Customers button is defined: Here is the javascript code in the Customers button .onClick event:
applyProperty("btn_Customers", "button style", "Black Marble");
Does anyone see why the above javascript does not change the 'Customers' button to 'Black Marble"?
I was trying to set the button style property in the .onClick event for each button to 'Black Marble' but this does not change the style of the button.
Here's how the buttons look when the initial page is displayed: Here is how the Customers button is defined: Here is the javascript code in the Customers button .onClick event:
applyProperty("btn_Customers", "button style", "Black Marble");
Does anyone see why the above javascript does not change the 'Customers' button to 'Black Marble"?