【问题标题】:show jquery thickbox when submitting form?提交表单时显示jquery thinbox?
【发布时间】:2009-09-24 11:28:08
【问题描述】:

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

【问题讨论】:

    标签: jquery ajax thickbox


    【解决方案1】:

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

    【讨论】:

    • 我想你明白我的想法。但请您更详细地解释解决方案。再次感谢..
    • 我按照您的指示显示只是加载图像.. 图像(由 url 提供)不出现..
    • 首先尝试显示警报以检查您的 ajax 是否正常工作。
    • ajax工作正常,只是出现下载图片..实际图片没有出现。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多