#include "SaRnHtml.h"
typedef void (*SaHtmlCallback)();
int SaRegisterHtmlActivator(char* actName,SaHtmlCallback call);
actName
is NULL, or an empty string, or if call is NULL. When Sapphire/Web writes the URLs for the Anchor HREFs that are bound, or for your bound forms, a string is inserted which will be processed by your cgi so that the appropriate callback function can be called. For Anchors this string is contained in the HREF after "?FNC=". For example:
<A HREF="http://cezanne/cgi- bin//s.cgi?FNC=Anchor1__Atestmod_html" >Scott</A>For forms, this string is contained in the VALUE part of a hidden form element whose name is "SaSubmitName". For example:
<INPUT TYPE="hidden" NAME="SaFormName" VALUE="Try1__Ftestmod_html">
actName
string, only the first registered callback is dispatched. There is no "unregister". For example:
SaRegisterHtmlActivator("GroupBy__Astart_html",AGroupBy);