Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 821

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
This is a cfwindow control.<br><br>
<a href="javascript:ColdFusion.navigate('windowsource.cfm','w2',
mycallBack,myerrorHandler);">Click</a> to navigate Window 2</a>
</cfwindow>
<cfwindow name="w2" title="CF Window 2" initShow=true
x=250 y=200 width="200">
This is a second cfwindow control.
</cfwindow>
<cfform>
<!--- This button only replaces the second window body with the body of the
windowsrc.cfm page. --->
<cfinput type="button" name="button" value="Simple navigate"
onClick="ColdFusion.navigate('windowsource.cfm','w2');">
<!--- This button replaces the second window body and title content. --->
<cfinput type="button" name="button2" value="Change w2 body & title"
onClick="w2_body.innerHTML='New body inner HTML';w2_title.innerHTML=
'New Title inner HTML'">
<!--- This button puts the second window title in the pod body. --->
<cfinput type="button" name="button3" value="Change pod body"
onClick="theTitle_body.innerHTML=w2_title.innerHTML;">
</cfform>
</body>
</html>
The following example shows the windowsource.cfm page:
This is markup from "windowsource.cfm"
<!--- The callback handler puts its output in the following div block. --->
<div id="callback"></div>
Using menus and toolbars
The cfmenu and cfmenuitem tags let you create vertical menus and horizontal toolbars.
Define menus and toolbars
• Use a single
tag to define the general menu characteristics.
cfmenu
• Create a horizontal (toolbar) menu or vertical menu by specifying a
.
vertical
• Menus can have submenus, but only the top menu can be horizontal. All children of a horizontal menu are vertical.
• The top-level menu shows initially, a submenu shows when the user moves the mouse over the menu root in the
parent menu.
• Use
tags to specify individual menu items.
cfmenuitem
• To create submenus, nest
• All
tags, except tags for dividers, must have a
cfmenuitem
menu item, and can optionally have an
• A horizontal menu has dividers between all items. You place dividers in vertical menus by specifying a
tag with a
attribute.
divider
• To make a menu item active, specify a
the menu item.
tags. The parent tag becomes the root of the submenu.
cfmenuitem
attribute.
image
attribute with a URL or a JavaScript function to call when the user clicks
href
Last updated 1/20/2012
attribute value of
cfmenutype
attribute, which defines the text to show on the
display
816
or
horizontal
cfmenuitem

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 38043740 - ColdFusion Standard - Mac and is the answer not in the manual?

This manual is also suitable for:

Coldfusion 9

Table of Contents