API
Method | Function |
---|---|
aspL.aspError | Flushes VBScript runtime error (if any) and stops executing the page |
aspL.CheckEmailSyntax(value)
| Checks syntax of email address - returns true/false |
aspL.clearAllCache
| Clears all cache from the Application |
aspL.clearCache
(name) | Clears Application cache for item "name" |
aspL.clone(str, n) | Clones str for n times |
aspL.convertBool(value) | Returns VBScript true or false (never null) |
aspL.convertNmbr(value) | Returns VBScript double or 0 (never null) |
aspL.convertStr(value) | Returns VBScript string (never null) |
aspL.dict | Returns a Scripting.Dictionary Object |
aspL.die | Destroys all plugins and terminates the page |
aspL.dump(value) | Flushes value to the browser and terminates the page |
aspL.dumpBinary(path,filename) | Flushes binary file to the browser and terminates the page. Filename (optional) is the full name of the file offered for download (default: the original filename) |
aspL.exec(filepath) | Executes the ASP/VBScript code from filepath |
aspL.form | Returns an aspLite formbuilder object |
aspL.fso | Returns a Scripting.FilesystemObject |
aspL.getCache(name) | Returns the Application cache for item "name" |
aspL.getCacheT (name, seconds) | Returns the Application cache for item "name" if it has been cached less than x seconds ago |
aspL.getFileType(filepath) | Returns the file-extension for the filepath |
aspL.getRequest(name) | Returns item from the request-collections querystring or form If a name appears both in the form and the querystring, the form-value will be returned |
aspL.htmlEncJs(value) | HTML encodes a JavaScript snippet |
aspL.IsAlphaNumeric(value) | Checks if value is alphanumeric - returns true/false |
aspL.isEmpty(value) | Checks if value is empty or null - returns true/false |
aspL.isNumber(value) | Checks if value is a number - returns true/false |
aspL.json | Returns a Json object - based ASP JSON Generator in asp-ajaxed.org |
aspL.length(value) | Replaces VBS len() (survives null) |
aspL.loadText(filepath) | Loads text from filepath |
aspL.log(value) | Can be used to log events to asplite/asplite.log |
aspL.padLeft (value, length, char) | Adds x-nmbr of chars to value as long as value.length<=length |
aspL.pathInfo | Loads pathinfo in case custom 404 is configured |
aspL.pCase(value) | First character of value will convert to uppercase, others to lowercase |
aspL.plugin(name) | Returns a plugin object with that name (it's already created) |
aspL.printTimer | Returns the page execution time so far |
aspL.randomizer | Returns an aspLite randomizer object |
aspL.sanitize(value) | Basic htmlencode |
aspL.sanitizeJS(value) | Basic JavaScript single quote-escape |
aspL.setCache(name,value) | Sets Application item with a given value |
aspL.stripHTML(value) | Strips HTML-tags from value (keeping only text) |
aspL.sqli(value) | Basic sql-injection prevention (single quotes -> two quotes) |
aspL.xmldom(url) | Returns fetched xml from url via "MSXML2.DOMDocument" |
aspL.xmlhttp(url,binary) | Returns fetched text or binary from url via "MSXML2.ServerXMLHTTP" |