Re: Clicking a button should fire a 'CSS event'

2015-02-04 Thread Chris
Hi Martin, dear all. thanks for the hint, I tried it the following way (see below). However, when #isTemporary returns true and the page is loaded afterwards, the attribute is not appended to the marker component. This only happens when setting it to false which has the disadvantage that this

Re: Clicking a button should fire a 'CSS event'

2015-02-03 Thread Martin Grigorov
On Tue, Feb 3, 2015 at 11:53 PM, Chris chris...@gmx.at wrote: Hi Martin, thanks for your reply, I understand. Here are some more details: marker is a WebmarkupContainer in a page that represents a rectangle. When the user clicks a specific icon (see below), the CSS class „marker“ is added

Re: Clicking a button should fire a 'CSS event'

2015-02-03 Thread Chris
I solved it via Javascript following the approach of http://blogs.sitepointstatic.com/examples/tech/animation-api/index.html http://blogs.sitepointstatic.com/examples/tech/animation-api/index.html. thanks, Chris Am 03.02.2015 um 22:52 schrieb Warren Bell warrenbe...@gmail.com: Chris,

Re: Clicking a button should fire a 'CSS event'

2015-02-03 Thread Martin Grigorov
Hi, Please try to explain the idea again. There is no such thing like CSS event. There is JS event. Does the button submit a form ? Because you say it reloads the page ... Why do you think the event is fired more than once ? Martin Grigorov Wicket Training and Consulting

Clicking a button should fire a 'CSS event'

2015-02-03 Thread Chris
Hi guys, I would like to control a DIV element when clicking on a button, so that it sort of reacts to this event by „blinking“ for a short time. Currently, when clicking the button, a CSS attribute is added to the DIV’s class and the page is reloaded so that this event is triggered. However,

Re: Clicking a button should fire a 'CSS event'

2015-02-03 Thread Warren Bell
Chris, Seems like a lot of work just to get a div to blink. Write a behavior with some javascript for the blinking and do that on the client only separate from your form submission or whatever else your button is doing. Warren On Feb 3, 2015, at 1:30 PM, Chris chris...@gmx.at wrote: Hi

Re: Clicking a button should fire a 'CSS event'

2015-02-03 Thread Chris
Hi Martin, thanks for your reply, I understand. Here are some more details: marker is a WebmarkupContainer in a page that represents a rectangle. When the user clicks a specific icon (see below), the CSS class „marker“ is added to the marker and the page is reloaded so that the marker-CSS is