http://www.infinite-scroll.com/ - using scrolling for endless scrolling

<div id="vk_post_-000000_00000"></div> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//vk.com/js/api/openapi.js?121";fjs.parentNode.insertBefore(js, fjs); } (document, "script", "vk_openapi_js")); (function() { if (!window.VK || !VK.Widgets || !VK.Widgets.Post || !VK.Widgets.Post("vk_post_-000000_00000", -000000, 00000, "bP1pSeQM_aHgcw7e7GIlW_tsow", {width: 385})) setTimeout(arguments.callee, 50); }()); </script> 

(from this it turns out then iframe :) The problem is that it loads only ..., and ... does not want to take

In infinite-scroll, only two types of dataType html and json, how to make html and script transmitted?

  • instead of dots, did you forget to write anything? - approximatenumber
  • Isn't it easier to drive json and collect HTML on the client side? - Shnur
  • @approximatenumber corrected the dots) - Dmitry Seonov
  • @Shnur as an example on the second page of pagination contains a block with this code (cited in the description in the first post). This connects the widget "wall posts" post with a contact that turns into an iframe. I would be very grateful for any help how to convey this, how to convey with the help of the same json - Dmitry Seonov

0