Jump to content

using ajax


teez

Recommended Posts

Posted

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. 

 

 

 

 

Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...