php - how can i insert only one part of a page with an iframe? -


i trying part of page, example http:/example.com/home.html, home has div id="content" , id set iframe , display "content" ... have tried load (with jquery) post says

http://stackoverflow.com/questions/4249809/reload-an-iframe-with-jquery 

but no results yet, idea how it? in jquery or direct php.

thanks in advance.

perhaps don't need use iframe - used embedding website, not quite need. instead, make ajax request url need, , use jquery parse response , fetch div need load.

example:

 $.ajax({   type: "get",   url: "http://stackoverflow.com/questions/4249809/reload-an-iframe-with-jquery",   success: function(r) {     var content = $(r).find("#content");     //now have content div stored in variable   } }); 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -