That's the problem:
in console.log msg displays, but when it comes to the redirect, it gives out is not defined. Probably trouble in the visibility zones of variables. Help...
Below is the code
success: function (msg) { $.fancybox('<div class="popup popup_sucsess"><p class="popup-title">Заявка принята!</p><p class="sucsess_text">Наш менеджер свяжется с вами в ближайшее время.<br/>Через <span class="size16">3</span> секунды Вы будете перенаправлены на страницу для оплаты.</p></div>', { 'transitionIn': 'fade', 'transitionOut': 'fade', 'speedIn': 300, 'speedOut': 300, 'padding': 0, 'overlayColor': '#0080b0', 'overlayOpacity': 0.4, 'showNavArrows' : false }); setTimeout( 'document.location.replace(msg)', 3000 ); }
msgwhat contains? Is there any? - MAXOPKAconsole.log(msg)- see what will be in the console. - MAXOPKA