0

jquery ajaxを使用して、ページのセクションを別のページのコンテンツ/htmlでロードしています。\

$(function() {
   app.xhr = $.ajax({
                                    url: url, 
                                    dataType: "html", 
                                    cache: false,
                                    success : function(html)
                                        {
                                            app.html = $(html);
                                            setTimeout(function(){
                                                app.insertPageData();
                                                app.xhr = null;
                                            },100)

                                        },
                                    error : function()
                                        {
                                            alert("Not Found")
                                        }
                                })


insertPageData : function()
                        {

                           $('div.data').html(app.html.find(".content").html())

                        }
});

ここに IE 固有の問題があります。app.html にはページの HTML が含まれており、IE で動作していないページから特定の div html を 1 つ抽出する必要があります。

HTMLからHTMLを抽出する他の方法はありますか??

ありがとう / グルシムロン

4

1 に答える 1