2011-10-11 3 views
2

아약스를 사용하여로드하려는 페이지의 일부가 있습니다. http://techlaboratory.net/labs/SmartWizard2/index.htmjQuery ajax : 로딩 html + 플러그인 적용, ie7

무엇 메신저 현재 일 :. 내용이 마법사의 HTML입니다

$(function(){ 

    $.ajax({ 
     url: 'content.htm', 
     dataType: 'html', 
     success: function(data) { 

      $('#content').html(data); 

      $('#wizard').smartWizard({ 

      //#wizard is inside the #content 

       transitionEffect:'fade', 
       onFinish: function() { 
        alert('finishClicked'); 
       } 

      }); 


     } 
    }); 

});  

난 그냥 $ ('# 마법사')를 사용하는 경우 스크립트가 제대로 작동 smartWizard(), 그리고 모든 것을 유지 같은 페이지. 하지만 아약스로 로딩 할 때 작동하지 않습니다. 아무도 저에게 차이점을 말할 수 있습니까? 어떤 아이디어를 해결하는 방법? 감사합니다

답변