开发者

Use facebox along with $.ajax

I used facebox and $.ajax inside HighChart event, but it run only one time and cannot run the next time. I guess the problem happen when facebox is closed. Anybody has an experience with this sort of problem? Thank you :-)

point开发者_如何学JAVA:{
                            events:{
                                click:function(){
                                    jQuery.facebox({'ajax':this.options.url});
                                    $.ajax({
                                        type: "GET",
                                        url: 'GetHighChart.aspx',
                                        contentType: "application/json; charset=utf-8",
                                        dataType: "html",
                                        success: function (d) {
                                            //alert("Done");
                                            $("#container1").html(d);
                                        }
                                    });       
                                }
                            }
                        }


I experienced this problem. I solved it by including the facebox plugin again in the HTML that was being called in the facebox. Ugly fix, but it works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜