bartb
unread,Oct 27, 2009, 4:37:59 AM10/27/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PURE - JavaScript Templates Engine
Hi,
I keep getting a error message (Error: NO_MODIFICATION_ALLOWED_ERR:
DOM Exception 7) in Safari when I try to render a table with INPUT
fields. It works when I leave the INPUT.cancellation directive out.
Does anyone have a working example of how to use Input fields?
Here is my non-working example:
Self.htmlExamens = $( '#exams tbody' );
var directivesExams = {
'tr' : {
'examen<-': {
'td.examcode': 'examen.EXAMCODE',
'td.examdescription': 'examen.EXAMDESCRIPTION',
'input.cancellation[value]': 'examen.CANCELLATION'
},
}
};
Self.templateExams = Self.htmlExams.compile
( directivesExams );
<table id="exams" class="exams">
<thead>
<tr>
<th>Exam</th>
<th></th>
<th>Cancelation</th>
</tr>
</thead>
<tbody>
<tr class="examen">
<td class="examcode"></td>
<td class="examdescription"></td>
<td><input type="text" class="cancellation"
name="cancelation" value="" size="10" /></td>
</tr>
</tbody>
</table>
regars, Bart