[Top] [Prev] [Next] [Bottom]
[Contents]
SaPrintJsScripts
A built-in data site callback function which will insert Java Script functions in a Sapphire server application at the specified data site in the HTML template.
#include "sajavasc.h"
void SaPrintJsScripts(char* file, char* site, void*
client);
Argument
- file
- A string specifying the filepath name of an HTML template file. This function ignores this parameter.
- site
- A string specifying the site name registered. This function ignores this parameter.
- kind
- Specifies which Java Script function(s) to print. Valid defined constants and the function they use to print are:
- SAJS_DATENOW - SaJavaDateFixNow()
- SAJS_FORMAT - SaJavaSimpleFormat()
- SAJS_NOEMPTYFLDS - SaJavaNoEmptyFields()
- SAJS_CREDIT - SaJavaCardCheck()
- SAJS_ZIP - SaJavaZipCheck()
- SAJS_SSN - SaJavaSsnCheck()
- SAJS_EMAIL - SaJavaValEmail()
- SAJS_STATE - SaJavaState()
- SAJS_LETTERS - SaJavaIsAllLetters()
- SAJS_DIGITS - SaJavaIsAllDigits()
- SAJS_NOBLANK - SaJavaIsFieldNotBlank()
Return Values
None.
A built-in data site callback function which will insert Java Script functions in a Sapphire server application at the specified data site in the HTML template. The parameter, kind, specifies which function(s) are inserted at the site.
The code fragment:
SaPrintJsSrcipts(NULL, "JavaScripts", 0);
will write a string to standard out which is equivalent to the contents of the file:
config\htmlstyle\Yjs.js
in the Sapphire distribution.
SaJavaSsnCheck, SaJavaZipCheck, SaJavaCardCheck, SaJavaNoEmptyFields
SaJavaDateFixNow, SaJavaIsAllDigits, SaJavaIsAllLetters, SaJavaIsFieldNotBlank
SaJavaValEmail, SaJavaSimpleFormat, SaJavaState, SaRegJsScripts, SaJavaCallFunc
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.