Search code examples
jqueryajaxthickbox

show jquery thickbox when submitting form?


I have form to upload images.. what i want is to process the form by ajax and after success show jquery thickbox..


Solution

  • do the ajax-call, and define a callback-function.

    In the callback-function call this method:

    function tb_show(caption, url, imageGroup)
    

    this normally should show the tickbox

    Make the ajax-call:

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