teez Posted July 14, 2017 Posted July 14, 2017 Hi! Where can i find some details about using ajax in apps? I have added pagination (now just reloads whole page) I have some buttons in post container which call to my apps, it makes something and after all return to post and I want to get ride of this reload.
bfarber Posted July 14, 2017 Posted July 14, 2017 You use javascript to submit the request (i.e. add a click handler on the links/buttons or similar), and then on the backend you can do if( \IPS\Requeest::i()->isAjax() ) { \IPS\Output::i()->json( ... ); } else { \IPS\Output::i()->sendOutput( ... ); } Adjusting the output values as appropriate
Recommended Posts
Archived
This topic is now archived and is closed to further replies.