1
rated 0 times
[
5]
[
4]
/ answers: 1 / hits: 10330
/ 11 Years ago, fri, january 10, 2014, 12:00:00
I'm a newbie in this, I'm trying to refresh a menu value (cart content) without reloading the whole page.
This is my issue : ${cartSession.getCartContent()} value in the alert check is Undefinied.
If it could help, In server side I'm using Spring.
$(document).ready(function(){
var $form = $(#panierform);
$form.submit(function(){
$.post($(this).attr('action'), $(this).serialize(), function(response){
},'json');
alert(Ajouté avec succès !);
refreshCartValue();
return false;
});
});
function refreshCartValue() {
alert(${cartSession.getCartContent()});
$(#cartValue).text();
$(#cartValue).text(${cartSession.getCartContent()});
}
More From » jquery