代码之家  ›  专栏  ›  技术社区  ›  assaqqaf

提交表单时是否显示jquery thickbox?

  •  0
  • assaqqaf  · 技术社区  · 15 年前

    我有上传图片的表格…… 我想要的是通过Ajax处理表单,并在成功后显示jquery thickbox

    1 回复  |  直到 15 年前
        1
  •  2
  •   Natrium    15 年前

    执行Ajax调用,并定义回调函数。

    在回调函数中调用此方法:

    function tb_show(caption, url, imageGroup)
    

    这通常会显示勾选框

    进行Ajax调用:

    $.ajax({
      url: "yoururl.php",
      cache: false,
      success: function(){ // --> this defines what function needs to be called when the ajaxcall was successful.
        // note that you'll need to fill the variables caption, url and imagegroup here. I don't know what they should be in your case.
        function tb_show(caption, url, imageGroup);
      }
    });
    
    推荐文章