With the following JS I get the height of a div
document.addEventListener(
"DOMContentLoaded", () => {
const element = document.getElementById("c27");
let text = element.offsetHeight + "px";
document.getElementsByTagName("divSize").??? = text;
}
);
Now I want to pass the variable to a fluid variable as value
<f:variable name="divSize" value="???" />
How can I do it?
You can't. Fluid is rendered server side. JavaScript is run client side.
<f:variable name="divSize" value="???" />does not exist client side.