Hi all!
I'm trying to add things to the playerboard. When I add something before the player score it works fine, but when I add something after the player score or as a last item of the playerboard, it always appears outside the playerboard under it. The code I'm trying to use is this:
and for the tpl:
What it is going wrong here?
I'm trying to add things to the playerboard. When I add something before the player score it works fine, but when I add something after the player score or as a last item of the playerboard, it always appears outside the playerboard under it. The code I'm trying to use is this:
Code: Select all
dojo.place( this.format_block('jstpl_cardwon',{player_id : player_id, turn : 1, x : 220}), 'player_board_' + player_id);
Code: Select all
var jstpl_cardwon = '<div class="cp_board">\
<span id="cardswon_board_${player_id}"> "cards won:" <div class="cardwon" id="cardwon_${player_id}_${turn}" style="background-position:-${x}px">\
</div></span>\
</div>';