提交表单时显示jquery thickbox?

时间:2009-09-24 11:28:08

标签: jquery ajax thickbox

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

1 个答案:

答案 0 :(得分:2)

执行ajax-call,并定义一个回调函数。

在callback-function中调用此方法:

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);
  }
});