Hi all,
I want to delete an entry within a tableview by using a confirmation popup. So everytime I set htmlbevent.cancelSubmit = true the server event is fired anyway. How could I avoid this ? Here is the particular code fragment:
...
<htmlb:tableViewColumns>
<htmlb:tableViewColumn columnName = "delicon"
title = "delete"
type = "user"
onCellClick = "delete"
fixedColumn = "true"
horizontalAlignment = "center">
<htmlb:image src = "ICON_DELETE"
onClientClick = "htmlbevent.cancelSubmit = !confirm('really want to do this?');" />
</htmlb:tableViewColumn>
...
Is there anybody who can give me an idea what went wrong with this ?
Regards,
Marco
Hallo Marco,
One of two ideas:
(1) Remove the onCellClick. This is the guy that is sending the request to the server. And add the click onto the image.
(2) Add this following string onto the onClientClick "event.cancelBubble=true;" to prevent the event from been handled by someone else. Probably you only want to do it if htmlbevent.cancelSubmit is true.
Recommended would be (1).
++bcm
Add a comment