jquery - Colorbox return html after content is fully loaded -


I think this issue is quite easy to solve, but I can not understand it myself.

I am using colorbox and simple Ajax request to load some html from the server like this:

  $ Colorbox ("(I got the answer!";}, "JSON", "Special"); Return "I have found before receiving the response: /";}});   

I am now sending a request to the post and once I get the answer, to return me html to colorbox

Try the following:

 < Code> $ Colorbox ({href: "image / render_image", data: {data: card data}, scrolling: wrong, interrupted: function () {// what you want}});    

Comments