{"id":7824,"date":"2015-10-30T07:46:54","date_gmt":"2015-10-30T07:46:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/30\/javascript-not-working-after-ajax-postback-jquery-backstretch-and-telerik-radajaxmanager-open-source-projects-srobbin-jquery-backstretch\/"},"modified":"2015-10-30T07:46:54","modified_gmt":"2015-10-30T07:46:54","slug":"javascript-not-working-after-ajax-postback-jquery-backstretch-and-telerik-radajaxmanager-open-source-projects-srobbin-jquery-backstretch","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/30\/javascript-not-working-after-ajax-postback-jquery-backstretch-and-telerik-radajaxmanager-open-source-projects-srobbin-jquery-backstretch\/","title":{"rendered":"JavaScript not working after AJAX postback (jQuery Backstretch and Telerik RadAjaxManager)-open source projects srobbin\/jquery-backstretch"},"content":{"rendered":"<p>I am using jQuery Backstretch (http:\/\/srobbin.com\/jquery-plugins\/backstretch\/), but after an AJAX update via an RadAjaxManager AjaxRequest (kicked off clientside), it dies.<\/p>\n<p>I have tried re-initializing after the AJAX, but no dice. Other jQuery plugins are still working though (i.e. Countdown for jQuery &#8211; http:\/\/keith-wood.name\/countdown.html).<\/p>\n<p>JS Page Load:<\/p>\n<pre><code>$(document).ready(function () {\n  $('#timer').countdown({\n    until: new Date(2014, 5 - 1, 1)\n  });\n\n  $.backstretch([\n    'images\/bg1.jpg',\n    'images\/bg2.jpg',\n    'images\/bg3.jpg'\n     ], {\n     fade: 750,\n     duration: 4000\n  });\n});\n<\/code><\/pre>\n<p>Javascript called for a button click:<\/p>\n<pre><code>$find(\"\").ajaxRequest();\n<\/code><\/pre>\n<p>VB:<\/p>\n<pre><code>Protected Sub RadAjaxManager1_AjaxRequest(sender As Object, e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest\n    'Do something\nEnd Sub\n<\/code><\/pre>\n<p>After the AjaxRequest has run, the Countdown is still running, but the Backstretch images have disappeared!<\/p>\n<p>Help?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am using jQuery Backstretch (http:\/\/srobbin.com\/jquery-plugins\/backstretch\/), but after an AJAX update via an RadAjaxManager AjaxRequest (kicked off clientside), it dies. I have tried re-initializing after the AJAX, but no dice. Other jQuery plugins are still working though (i.e. Countdown for jQuery &#8211; http:\/\/keith-wood.name\/countdown.html). JS Page Load: $(document).ready(function () { $(&#8216;#timer&#8217;).countdown({ until: new Date(2014, 5 &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7824","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7824"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7824\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}