2012-11-30 28 views
0

我有一个AJAX调用一个函数如下:灯箱/彩盒开一次AJAX的成功已经调用

$("#<%=gridview.ClientID%> tr:has(td)").click(function(e) { 
    var id = $(this).children("td:eq(3)").find(':input').val(); 
    $.ajax({ 
     type: "POST", 
     url: "Docs.aspx/BtnTest", 
     contentType: "application/json; charset=utf-8", 
     dataType: "json", 
     success: function (msg) { 
      if (msg.d == 'Success') { 
       window.open('/view.aspx?Id=' + id, '_blank'); 
      } 
     } 
    }); 
    e.preventDefault(); 
}); 

正如你可以看到上面的代码上的成功,我有id打开另一个页面请求参数。我怎样才能拨打Colorbox或任何其他的灯箱插件在iframe中打开?

回答