Can anyone help with the syntax for an AJAX Success callback function that fires each time a LoadFeed button is pressed?
I have many LoadFeedButton's which loads data and populates the target div (named 'PeopleDetails') properly.
I also have an error div named 'NoPeople' (initially hidden)
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.
I've included the following in my JQueryReady section and the success callback works great, but only at page load.
Here is what I have in JQuery Ready to test that the callback working properly, this code is only excuted at page load.
$ . a j a x ( {
s u c c e s s : f u n c t i o n ( ) {
a l e r t ( " T h e p a r a g r a p h i s n o w h i d d e n " ) ; }
} ) ;
What thing obvious with what am I doing wrong?
any help appreciated..
Mark