简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM