【发布时间】:2009-09-24 11:28:08
【问题描述】:
我有表格上传图片.. 我想要的是通过ajax处理表单,成功后显示jquery thickbox..
【问题讨论】:
我有表格上传图片.. 我想要的是通过ajax处理表单,成功后显示jquery thickbox..
【问题讨论】:
执行 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);
}
});
【讨论】: