Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SHUTTLE item: How to assign a javascript event to control buttons?

TomeoMay 23 2010 — edited Jun 23 2010
Hello folks,

I have a shuttle item on my page and I would like to call a javascript event (onclick) everytime when any control button is pressed.

How can I assign an onclick event to these control buttons ("Reset","Move All","Move","Remove","Remove All") ? Based on page source they don't have a tag ID name, so I can't reference them - or I don't know how to reference it.

For onClick and onDoubleClick events on both LEFT and RIGHT side of shuttle I'm using a below script in POST ELEMENT TEXT section.
<script type="text/javascript">
(function(){
  $x("#CURRENT_ITEM_NAME#").onclick   = new Function("f_CountSMS();");
  $x("#CURRENT_ITEM_NAME#").ondblclick   = new Function("f_CountSMS();");
})();
</script>
Kind Regards,
Tomas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2010
Added on May 23 2010
2 comments
992 views