2012-09-24 2 views
0
function test() 
{ 
    //load some data through ajax call 
    html = '<a rel="facebox_edit" href="www.google.com">abc</a>'; 
    $('#id_fv').html(html); 
} 

jQuery(document).ready(function($) { 
       $('a[rel*=facebox_edit]').facebox({ 
        loadingImage : full_path+'images/loading.gif', 
        closeImage : full_path+'images/closelabel.png' 
       }); 
      }); 

동적으로 facebox 객체를 바인딩(), 지금은 직접 facebox에 넣기보다는 www.google.com 페이지로 이동합니다. 그것을 해결하는 방법? 이 같은가 어떻게 기능 테스트를 호출 몸 부하에 DOM 요소

답변

0

쓰기 ..

function test() 
{ 
    //load some data through ajax call 
    html = '<a rel="facebox_edit" href="www.google.com">abc</a>'; 
    $('#id_fv').html(html); 
} 

jQuery(document).ready(function($) { 
       test(); 
       $('a[rel*=facebox_edit]').facebox({ 
        loadingImage : full_path+'images/loading.gif', 
        closeImage : full_path+'images/closelabel.png' 
       }); 
      });