Поюзал гугл и понял что пробема в функции .html() она не исполняет скрипты, как обойти?
(Добавление)
Всем спасибо рашел вот решение кому нужно:
CODE ( javascript):
скопировать код в буфер обмена
$(document).ready(function() { $('#post_form').submit(function(){ $.post("http://{$url_soft}", $("#post_form").serialize(), function(response) { $('#div_slow_chow').hide('slow'); $('#post_form_success').html(response); setTimeout(function() { $("#post_form_success").hide('slow'); }, 2000); $('#mydiv').html(dom.find('#post_form_success').html(response)); dom.filter('script').each(function(){ $.globalEval(this.text || this.textContent || this.innerHTML || ''); }); }); return false; }); });
|