user851559
user851559

Reputation: 55

Event lost after using colorbox in asp.net

I have a problem when using colorbox. It worked fine, but after closing the popup window and doing any event using linkbutton that does a postback the event doesn't work and open new window contains last popup window.

Thanks Advanced,

Mahmoud Elsayed Abd Elaty

Upvotes: 1

Views: 343

Answers (1)

karim79
karim79

Reputation: 342665

Try re-initializing the colorbox plugin once your postback has completed, e.g.:

$.get("foo.html", function (html) {
    $("#myDiv").html(html);
    $("#myDiv .someElement").colorbox();
});

Upvotes: 1

Related Questions