我有上传图片的表单.. 我想要的是通过ajax处理表单,并在成功后显示jquery thickbox ..
答案 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);
}
});