Call method controller from javascript code

asked 2018-10-25 15:49:58 +0800

softteam gravatar image softteam
45 4

updated 2018-10-25 16:01:00 +0800

From script zone inside zul page I create a button in javascript and I would like to call a method controller when it click the button.

I have found in forums this way "mywin$composer.anotherMethod();" but use GenericForwardComposer and I use SelectorComposer in my code.

Any ideas? thank you anyway.

My code:

    function setDatosEconomicos(idCapa){
        var capa = document.getElementById(idCapa+"-cap");
        var button = document.createElement("button");
        button.setAttribute("id", "PRUEBA");
        button.style = "background:transparent; border:none;"
        button.innerHTML = '<img src="subirImagenIcon.png" />';

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2018-10-25 15:49:58 +0800

Seen: 2 times

Last updated: Oct 25 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More