Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
64
rated 0 times [  71] [ 7]  / answers: 1 / hits: 21419  / 11 Years ago, wed, may 29, 2013, 12:00:00

I have a JQuery function who add a Table in the JSP dynamically:



$('#add').click(function(event) {

event.preventDefault();

$('.tabela_procurador').before
('<table id=tabela_nova' + i + ' class=tabela_nova> ' +
'<tr> ' +
'<td colspan=4 class=subTitulo_barra> ' +
'<spring:message code=representante_legal /> '+ i +' ' +
'</td> ' +
'</tr> ' +
'</table>');
i++
});
});


But when i added this table i lost the spring:message.



There is something i can do to jquery recognize this spring:message?


More From » jquery

 Answers
97

There's no way for jQuery to have access to a spring tag. spring:message is processed server-side before the page is sent to the client, javascript/jQuery is processed later on the client side.


[#77936] Tuesday, May 28, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iliana

Total Points: 246
Total Questions: 109
Total Answers: 82

Location: Palestine
Member since Tue, Jul 20, 2021
3 Years ago
;