jquery - Installing infinite scroll within iframe -


i have tried install jscroll.js within iframe. following js plugin script makes infinite scroll work @ convenient way.

http://jscroll.com/

i have tried installing plugin before on regular page, thought wouldn't difficult problem since doing same thing again time it's on iframe.

the website i'm working on personal website works in sort of window user interface, appears when click on button reads '공지사항' on bottom of page.

the basic interface uses simple addclass , removeclass jquery function, , when click on other menu, jquery attrs change src of iframe within .window div contains iframe.

i have first tried implement jscroll.js within iframe document,but gave me cross origin controls error.

so, again implemented plugin inside main page,not page gets loaded inside iframe.

but i'm getting following error:

cannot read property 'ownerdocument' of null

the thing i'm trying achieve here that, infinite scroll worked inside iframe appears when click on button reads '공지사항' on bottom of page.

can tell me have missed, , how fix?

here script:

<script>  /* infinite scroll */ jquery(document).ready(function(){ jquery('#window_frame').jscroll({     loadinghtml: '<center><img src="layouts/window/ajax-loader.gif"        alt="loading" /> loading...</center>',     padding: 0,     contentselector: '.board_list',     autotriggeruntil: 3,     nextselector:'.next_button' }); }); 

and website link.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -