I have this jade file
- if (transactions != "")
table
th Site Name
th Deadline
th Delete Transaction
each item in transactions
tr
td= item.item_name
td
span(id='countdown'+item.timeout)= item.timeout
td
span(style='cursor: pointer;', onclick='deleteTransaction('+item.uniqueId+')')= "X"
button(id='confirmButton', onclick='confirm();', value="Confirm", name="Confirm")= "Confirm"
script
fillCountdown(transactions);
I don't understand why the function fillCountdown in the last line is never called. I have to say that this page is loaded in a Chrome extension, in the popup, but I guess nothing changes.
Can someone help me? Thanks.
scripttag at all, I already checked that before asking here. And JavaScript doesn't give any error at all.scriptcode gets executed on the client, not the server. do you intend to do that?