ColdFusion 9.0 Resources |
ColdFusion.Window.hideDescriptionHides a window that is currently displayed. Function syntaxColdFusion.Window.hide(name) See alsocfwindow, ColdFusion.Window.create, ColdFusion.Window.getWindowObject, ColdFusion.Window.onHide, ColdFusion.Window.onShow, ColdFusion.Window.show, ColdFusion.Tree.getTreeObject, Using pop-up windows in the Developing ColdFusion Applications HistoryColdFusion 8: Added this function Parameters
ReturnsThis function does not return a value. UsageThis tag has no effect if the window is already hidden. ExampleThe following code lets you show and hide a window by clicking buttons: <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <cfwindow name="testWindow" initshow=true title="test window" closable=true> Window contents </cfwindow> <cfform> <cfinput name="hidebutton" type="button" value="Hide Window" onclick="javascript:ColdFusion.Window.hide('testWindow');"/> <cfinput name="showbutton" type="button" value="Show Window" onclick="javascript:ColdFusion.Window.show('testWindow');"/> </cfform> </body> </html> |