Saturday, 15 June 2013

jquery - Javascript function is not triggered for a div thats loaded with Ajax -


I am using the plugin to mark the page. As div # stream is loaded with Ajax, this function $ ('# stream'). Infinitescroll is not triggered

  $ (function () {$ ('# stream'). Infinitescroll ({navSelector: ".posted: last", next selector: "A.paginate: last", data type: 'json', append callback: false, path: "somewhat"}, function (jsen, opt) {warning ("jason received .."}}}}; < / Code>  

How does an idea work? As the DIV # stream is full with Ajax, this function is $ ('# stream')

< Div class = "post-text" itemprop = "text">

) .infinitescroll is not being triggered > $. Ajax ({... Success: Work () {// Your code that connects # Stream $ ('# Stream'). Infinitescroll ({navSelector: "Paginated: Last", Next Selector: " A.paginate: last ", data type: 'jason', append callback: fotball, path:" someurally "}, function (jsen, optes) {warning (" jason received .. "}})}}});

You need to call the method again when an element is dynamically added. Call it in the document. When the document is ready for the # stream this method is called when the document may not exist

No comments:

Post a Comment