Hello,
I found something strange.
I add on column for holding buttons in CCv5. To make a test, I make a message alert to send me the id of the button I clicked.
For the first click on the button, I have no message. The second click, I have a 2 messages.Those show me the button id. The third click on the button I have 3 messages showing me the button id. The fourth , 4 messages etc...
Here my code in javascript that I put in In Front List>Settings>HTML:
In Front List>Settings>HTML:
Please have a look on the screenshot and my backup files.
Thank in advance for you help.
Bertrand
I found something strange.
I add on column for holding buttons in CCv5. To make a test, I make a message alert to send me the id of the button I clicked.
For the first click on the button, I have no message. The second click, I have a 2 messages.Those show me the button id. The third click on the button I have 3 messages showing me the button id. The fourth , 4 messages etc...
Here my code in javascript that I put in In Front List>Settings>HTML:
<script>
function CallAjax(){
jQuery(document).ready(function (){
jQuery("input").click(function (e) {
var idClicked = e.target.id;
alert(idClicked);
});
});
}
</script>
In Front List>Settings>HTML:
selectrow:<input type="button" id="button_PTO_{PTO.id}" onclick="CallAjax()" value="{PTO.id}"><script>function CallAjax(){jQuery(document).ready(function (){jQuery("input").click(function (e) {var idClicked=e.target.id;alert(idClicked);});});}</script>
Please have a look on the screenshot and my backup files.
Thank in advance for you help.
Bertrand