First time here? Check out the FAQ!
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:
<script><![CDATA[
function setDatosEconomicos(idCapa){
//console.log(document.getElementById(idCapa+"-cap"));
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" />';
capa.appendChild(button);
}
]]></script>
Asked: 2018-10-25 15:49:58 +0800
Seen: 2 times
Last updated: Oct 25 '18
Facing issue in masking on phone [closed]
coerceFromString_ override no longer works from 6.5.1 [closed]
Execute Javascript on component visible
Is there a way to resolve view model properties as input to client side javascripts?
scrollbar listner for 2 grid [closed]
Theme javascript wpd file not found