Login
1
Introduction
1.1. About JavaScript
1.2. HASH files
1.3. JS files in #/API
2
General functions
2.1. if
(criteria)
2.2. else
2.3. function
name, params
2.4. return
value
2.5. break
2.6. continue
2.7. typeof
value
3
Directives
3.1. Include directive
(file)
3.2. Master directive
(file)
4
Chapter functions
4.1. Chinit
(name)
4.2. Chstep
(name)
4.3. Chdestep
(name)
4.4. Chpush
(name)
4.5. Chpop
(name)
5
Date and time functions
5.1. DateDiff
(date1, date2)
5.2. Formatting dates
5.3. new Date()
5.4. AddSeconds
(datetime, seconds)
5.5. AddMinutes
(datetime, minutes)
5.6. AddHours
(datetime, hours)
5.7. AddDays
(date, days)
5.8. AddMonths
(datetime, months)
5.9. AddYears
(datetime, years)
6
Filesystem functions
6.1. CreateFolder
(folderPath, folderType, folderData)
6.2. DeleteFile
(filePath)
6.3. DeleteFolder
(folderPath)
6.4. FileExists
(filePath)
6.5. FolderExists
(path)
6.6. GetEmbeddedFile
(path, id)
6.7. Include
(path, template)
6.8. GetEmbeddedFileSize
(path, id)
6.9. GetFiles
(path, searchPattern, depth, mode)
6.10. GetFolder
(path)
6.11. GetFolders
(path)
6.12. GetFile
(filepath)
6.13. LinkFile
(resource)
6.14. ListFiles
(path, searchPattern)
6.15. LinkImage
(path, width, height, mode)
6.16. Image scaling
6.17. LoadExcel
(filename, column, row, sheet)
6.18. MoveFile
(filePath, toPath)
6.19. MoveFolder
(folderPath, destinationPath)
6.20. RenameFile
(filePath, newName)
6.21. SaveEmbeddedFile
(filePath, filename, data)
6.22. SaveFile
(filePath, data, schema, ensurePath)
6.23. SaveJson
(filePath, data)
7
Math functions
7.1. Math calculations
7.2. Math.atan
7.3. Math.random
7.4. Math.cos
7.5. Math.PI
7.6. Math.sin
(value)
7.7. Math.sqrt
(value)
7.8. Math.tan
(angle)
7.9. Math.abs
(value)
7.10. Math.pow
(base, exponent)
7.11. Math.ceil
(value)
7.12. Math.floor
(value)
7.13. Math.round
(value)
8
Array functions
8.1. Array.concat
(list)
8.2. Array.every
(callback)
8.3. Array.filter
(filter)
8.4. Array.find
(filter)
8.5. Array.forEach
(callback)
8.6. Array.indexOf
(item)
8.7. Array.join
(seperator)
8.8. Array.pop
8.9. Array.push
(item)
8.10. Array.reverse
8.11. Array.shift
8.12. Array.slice
(start, end)
8.13. Array.some
(evaluator)
8.14. Array.sort
(sorter)
8.15. Array.splice
(start, deleteCount, item1...N)
9
Network functions
9.1. GetRemoteIp
9.2. DownloadFromUrl
(url)
9.3. DownloadFromUrl64
(url)
9.4. HttpGet
(url, headers)
9.5. HttpPost
(url, data, headers)
9.6. HttpFormPost
(url, data, headers)
10
Output functions
10.1. Process
(script, cursor)
10.2. console.assert
(condition, message)
10.3. Write
(text)
10.4. Request
10.5. Format
(value, format)
10.6. Formatting numbers
10.7. HTML.format
(html)
10.8. JSON.format
(json)
10.9. Redirect
(url)
10.10. JSON.parse
(json)
10.11. JSON.stringify
(value)
10.12. console.log
(text)
10.13. SetCulture
(culture)
10.14. TextToHtml
(text)
10.15. Chr
(code, ...)
11
String functions
11.1. Template literal (template strings)
11.2. Guid
11.3. TextToHtml
(text, text2, ...)
11.4. encodeURI
(text)
11.5. encodeURIComponent
(text)
11.6. HtmlEncode
(text)
11.7. HtmlAttributeEncode
(text)
11.8. JsStringEncode obsolete
(text)
11.9. RemoveEmptyLines
(text)
11.10. String.concat
(string1, string2, ...)
11.11. String.includes
(search)
11.12. String.indexOf
(text)
11.13. String.lastIndexOf
(text)
11.14. String.normalize
11.15. String.repeat
(times)
11.16. String.replace
(find, replace)
11.17. String.split
(seperator)
11.18. String.startsWith
(text)
11.19. String.endsWith
(text)
11.20. String.trim
11.21. StripTags
(html)
11.22. UrlEncode
(text, seperator)
12
Validation functions
12.1. IsNumber
(value)
12.2. IsString
(value, minLength)
12.3. AreEqual
(value1, value2)
12.4. AreNotEqual
(value1, value2)
12.5. IsNull
(value)
12.6. IsNotNull
(value)
12.7. IsName
(value)
12.8. IsEmail
(value)
12.9. Assert
(description, resultCode)
12.10. IsDate
(value)
13
Share functions
13.1. Download
(file, template)
13.2. GetFileShares
(path)
13.3. AddFileShare
(file, user, access, subject, message)
13.4. RemoveFileShare
(file, user)
13.5. SendEmail
(file, template, receiver, subject, message)
13.6. DenyAccess
13.7. DownloadEmbedded
(file, embeddedId, filename)
13.8. GenerateDocument
(file, template)
13.9. SendForm
(form, formName, sendTo, smtp)
14
Authentication
14.1. WriteJwt
(userinfo)
14.2. DenyAccess
15
Mail functions
15.1. pop3.pop
(options)
15.2. pop3.delete
(options, identifier)
15.3. pop3.get
(options, identifier)
15.4. pop3.getHeader
(options, identifier)
15.5. smtp.send
(config, message)
Home
JavaScript
Authentication
Authentication
WriteJwt
(userinfo)
The writeJwt function is responsible for generating and writing a JWT (JSON Web Token) secure cookie to the user's browser.
DenyAccess
This function exits and returns a login required error.