jquery - Automatic refresh and show more records -
i have automatic refresh load records in page. page updating every 20 seconds jquery/ajax.
index.cfm:
<script> $(document).ready(function() { $("##comments#timeline_id#").load("comments.cfm?timeline_id=#timeline_id#"); var refreshid = setinterval(function() { $("##comments#timeline_id#").load('comments.cfm?timeline_id=#timeline_id#&randval='+ math.random()); }, 20000); }); </script>
it shows 5 comments , want create button "show comments", of course when there more available. want load comments without page refresh.
is need fix on index.cfm, or should on comment.cfm page? can point me in right direction, because i'm stuck on this.
thanks!
i try not use coldfusion built-in ajax functions have made exception cfdiv. cfdiv seems perfect solution problem.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=tags_d-e_04.html
Comments
Post a Comment