assaqqaf
assaqqaf

Reputation: 1585

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..

Upvotes: 0

Views: 1056

Answers (1)

Natrium
Natrium

Reputation: 31174

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

Upvotes: 2

Related Questions