[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Trigger button component using javascript  XML
Forum Index -> Development
Author Message
kasala

Power User

Joined: 10/08/2017 13:21:42
Messages: 35
Offline

Hi captain, Is there a way to trigger the button component by using javascript?
rheinrichs

Power User
[Avatar]

Joined: 08/05/2009 10:05:36
Messages: 209
Offline

Hi!

We use the "t:messagelistener" like this:
<t:messagelistener actionListener="#{d.JScriptAction.onMessageEvent}" commandfilter="#{d.JScriptAction.commandFilter}" />

The command filter has to define the allowed actions.

Within JScriptAction#onMessageEvent we map the action to the button action.

The call looks like this:
{RISCHtmlNode}.sendTextMessage("tuWas(" + action + ")

Kind regards
Roland
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team