Domanda

var x = document.getElementById('comments');
x.innerHTML=  '[% PROCESS bug/comments.html.tmpl'+
            ' comments = bug.comments,'+
            ' mode = "edit" %] ';

I don't see any type of invalid characters, I have also tried to put double slash (//). what I am missing?

È stato utile?

Soluzione

I think your code have to be something like this

var x = document.getElementById('comments');
x.innerHTML=  '[%~ PROCESS bug/comments.html.tmpl comments = bug.comments, mode = "edit" ~%]';
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top