romanstr
07/28/2023, 10:54 AM<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<input type="text" name="param1" id="param1" value="" size="10" maxlength="10" />
<cfdiv
bindOnLoad="false"
bind="url:test20230727i.cfm?param={param1@change}" ID="thePBDiv"
>
static
</cfdiv>
<script>
function finish() {
console.log('finish');
}
</script>
</body>
</html>
test20230727i.cfm
<cfsetting showdebugoutput="false">
<cfcontent reset="true">
loaded ajax
<cfset AjaxOnLoad("finish")>
Function hasn't called. Is it bug or I do something wrong?zackster
07/28/2023, 10:57 AMromanstr
07/28/2023, 10:58 AM<script type="text/javascript">Lucee.Events.subscribe(arguments.functionname,"onLoad");</script>
I believe that's incorrect and there should be "finish" instead of arguments.functionname, but I don't see any errors in console. I think script doesn't runromanstr
07/28/2023, 11:00 AMzackster
07/28/2023, 11:27 AMzackster
07/28/2023, 11:27 AMromanstr
07/28/2023, 11:45 AMromanstr
07/28/2023, 11:49 AM