Ajax JavaScript Function - ColdFusion.Window.onHide
ColdFusionWindowonHide.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
function onhide(windowName) {
alert(windowName + " window now hide!");
}
function linkClick() {
ColdFusion.Window.onHide("ButterflyImageWindow", onhide);
ColdFusion.Window.hide("ButterflyImageWindow");
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ajax JavaScript Function: how to use ColdFusion.Window.onHide in coldfusion</title>
</head>
<body>
<h2 style="color:DeepPink; font-style:italic">Ajax JavaScript Function example: ColdFusion.Window.onHide</h2>
<hr width="600" align="left" color="Beige" />
<br />
<a href="JavaScript:linkClick()">
<b>Hide the Window</b>
</a>
<cfwindow
name="ButterflyImageWindow"
title="Butterfly Image Explorere"
initshow="true"
x="25"
y="150"
height="400"
width="485"
closable="false"
draggable="false"
>
<img src="Images/Butterfly9.jpg" height="321" width="450" />
</cfwindow>
</body>
</html>