This module offers a number of AJAX related functions that may help to implement async features.
AJAX scripts should be located in /cgi-bin/local/perl/my_ono_project/ajax, where you will also find some scripts that have been automatically generated and/or updated by ONO.pl.
community_search_user_profile();
This is a subroutine used by the exec function.
ONO::ToolBox::Ajax->community_search_user_profile( $db, $community, $username, $realname );
returns: qq~<a href="javascript:void(0);" onclick="ono_ajax_user_search_exec('$username');"> <table class="wide_table"> <tr class="row"> <td class="p5">$IMG</td> <td class="p5 w100"><div class="lh125"><div class="large bold">$realname</div><div class="col9">$username</div></div></td> </tr> </table> </a> ~
exec();
This function is used by /cgi-bin/local/perl/my_ono_project/ajax/exec.pl (an executable file that is automatically generated by ONO.pl), it offers some AJAX I/O features used by a number of ONO modules.
ONO::ToolBox::Ajax->exec( $community, $vars_ref );
input_decode();
Links to the ONO URL encoding input_decode function.
ONO::ToolBox::Ajax->input_decode( );
textarea_key();
AJAX related JS code used by the ONO text editor.
ONO::ToolBox::Ajax->textarea_key( $area, $init );
textarea_onload();
AJAX related JS code used by the ONO text editor.
ONO::ToolBox::Ajax->textarea_onload( $area, $init, $script );
textarea_stat();
AJAX related JS code used by the ONO text editor.
ONO::ToolBox::Ajax->textarea_stat( $area, $init, $switches );