Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 14, 20177 yr 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.
July 14, 20177 yr 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
Archived
This topic is now archived and is closed to further replies.