AjaxLink
Method Signature
AjaxLink(url)Arguments
Argument
Type
Required
Description
Default
Examples
// Generate an AJAX link
ajaxUrl = AjaxLink("/api/data");
// Returns: "javascript:void(BoxLangAjax && BoxLangAjax.utils ? BoxLangAjax.utils.handleAjaxLink('/api/data', event) : console.error('BoxLang AJAX not initialized'))"
// Use in an HTML anchor tag
writeOutput('<a href="#ajaxUrl#">Load Data</a>');Related
Last updated
Was this helpful?
