Title: Problem with Ajax Paging
Last modified: August 21, 2016

---

# Problem with Ajax Paging

 *  Resolved [m_andrasch](https://wordpress.org/support/users/programmieraffe/)
 * (@programmieraffe)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-ajax-paging/)
 * Hey,
 * thanks very much for this great plugin!
 * Unfortunately we have a problem with Ajax Paging. We use the tribe events calendar(
   [http://tri.be/shop/wordpress-events-calendar/](http://tri.be/shop/wordpress-events-calendar/))
   and injected an adplace via php code into the loop.php of the event calendar.
 * We use the javascript-method of SAM.
 * Unfortunately the ad place will not load correctly after a ajax paging action
   in the events. I tried to debug it, but SAMObject seems to be there. So i don’t
   know why the javascript adcode is not in in the response. It is just empty.
 * Thanks in advance!
 * Best regards,
    Matthias
 * [http://wordpress.org/plugins/simple-ads-manager/](http://wordpress.org/plugins/simple-ads-manager/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [minimus](https://wordpress.org/support/users/minimus/)
 * (@minimus)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-ajax-paging/#post-4535658)
 * I do not see the SAM plugin on your site.
 *  Thread Starter [m_andrasch](https://wordpress.org/support/users/programmieraffe/)
 * (@programmieraffe)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-ajax-paging/#post-4535660)
 * Sorry, i totally forget that the events calendar pulls the next page via AJAX
   request. Therefore the inline javascript will not be executed after a paging-
   action.
 *  [FurySting](https://wordpress.org/support/users/furysting/)
 * (@furysting)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-with-ajax-paging/#post-4535712)
 * So is there any resolution to this? I even tried loading the ads into objects
   and saving them as super globals to display on the ajax loaded page and the first
   one works, but none of the ones ajax loads.
 *  Thread Starter [m_andrasch](https://wordpress.org/support/users/programmieraffe/)
 * (@programmieraffe)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-with-ajax-paging/#post-4535713)
 * Hey FurySting,
 * the problem is the following:
 * jquery will strip out script tags in the ajax response:
 * [http://bugs.jquery.com/ticket/2282](http://bugs.jquery.com/ticket/2282)
    [http://stackoverflow.com/questions/4079179/jquery-html-strips-out-script-tags](http://stackoverflow.com/questions/4079179/jquery-html-strips-out-script-tags)
 * If you solved this problem or make a workaround, you will need to execute the
   inline javascript via eval or something:
 * [http://aahacreative.com/2011/11/27/executing-inline-javascript-ajax/](http://aahacreative.com/2011/11/27/executing-inline-javascript-ajax/)
 * Alternative: Keep the ad spaces and don’t replace them with newly loaded html.(
   e.g. in diffrent divs)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with Ajax Paging’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-ads-manager_73687f.svg)
 * [Simple Ads Manager](https://wordpress.org/plugins/simple-ads-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-ads-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-ads-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-ads-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-ads-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-ads-manager/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [m_andrasch](https://wordpress.org/support/users/programmieraffe/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/problem-with-ajax-paging/#post-4535713)
 * Status: resolved