name_run_action_ajax()


This function handles the add-on's $_GET actions for calls to the ajax.php file from the back end (administration area) of Open-Realty. Each $_GET action should have the function to be called defined. The action must be named using this method: addon_name_description.


An example of valid code for this function:

<?php

function name_run_action_ajax() {

       switch ($_GET['action']) {

               case 'addon_name_showpage1':

                       $data = name_display_addon_page();

               break;

               default:

                       $data = '';

               break;

       }

return $data;

}

?>

Related Topics:
JavaScript and Ajax
name_run_user_action_ajax()