XModPro

LoadFeedButton - AJAX success callback

Mark Guercio Mark Guercio asked Jun 11, 2015
Active Jun 11 · Viewed 2052 times
<p>Can anyone help with the syntax for an AJAX Success callback function that fires each time a LoadFeed button is pressed?&nbsp;</p><p>I have&nbsp;many LoadFeedButton's which loads data and populates the target div (named 'PeopleDetails') properly.</p><p>I also have an error div named 'NoPeople' (initially hidden)</p><p>My goal is to evaluate the loadfeedbutton target div contents and if they are empty (using trim or length etc as the condition) display the error div.</p><p>I've included the following in my JQueryReady section and the success callback works great, but only at page load.</p><p>Here is what I have in JQuery Ready to test that the callback working properly, this code is only excuted at page load.</p><p>$ . a j a x ( {<br> s u c c e s s : f u n c t i o n ( ) {<br> a l e r t ( " T h e &nbsp; p a r a g r a p h &nbsp; i s &nbsp; n o w &nbsp; h i d d e n " ) ; &nbsp; &nbsp;}<br>&nbsp; } ) ;</p><p>What thing obvious with what&nbsp;am I doing wrong?</p><p>any help appreciated..</p><p>Mark</p></p>

0 Answers

Loading answers...