Whatever message this page gives is out now! Go check it out!
<cfajaximport
cssSrc = "local URL path"
params = "parameters"
scriptSrc = "local URL path"
tags = "comma-delimited list">Attribute | Req/Opt | Default | Description |
cssSrc | Optional | scriptsrc/ajax | Specifies the URL, relative to the web root, of the directory that contains the CSS files used by ColdFusion AJAX features, with the exception of the rich text editor. This directory must have the same directory structure, and contain the same CSS files, and image files required by the CSS files, as the web_root/CFIDE/scripts/ajax/resources directory. This attribute lets you create different custom styles for ColdFusion AJAX controls in different applications. |
params | Optional | This attribute allows you to specify parameters for the CFM page. Currently, the only parameter that you can specify is googlemapkey. You can specify the googlemapkey as follows:<cfajaximport params=#{googlemapkey="Map API Key"}#> | |
scriptSrc | Optional | scriptsrc setting in the Administrator;default path is /CFIDE/scripts/ | Specifies the URL, relative to the web root, of the directory that contains the client-side script files used by ColdFusion. This directory includes the JavaScript files and the default location of the CSS files used for all AJAX features. If you use this attribute, the cfajaximport tag must precede all other ColdFusion AJAX tags on the page; that is, all tags that rely on the scripts. You can have only one scriptsrc attribute on a page, in a cfajaximport tag or a cfform tag. You can use a scriptsrc attribute in a cfajaximport tag to apply its value to all forms on a page. |
tags | Optional | A comma-delimited list of tags or tag-attribute combinations for which to import the supporting JavaScript files on this page. If you use this attribute, it must specify all ColdFusion AJAX tags that you use on the page and on any pages specified in tag source attributes. For a list of valid attribute values and their purposes, see Usage. |
Attribute value | Used for |
cfdiv | cfdiv tags |
cfform | Forms that are in cfpod, cfwindow, or cflayoutarea tag bodies |
cfgrid | AJAX format cfgrid tags |
cfinput-autosuggest | cfinput tags that use the autosuggest attribute |
cfinput-datefield | HTML format cfinput tags that use the datefield attribute |
cflayout-border | cflayout tags with a type attribute value of border |
cflayout-tab | cflayout tags with a type attribute value of tab |
cfmenu | cfmenu tags |
cfpod | cfpod tags |
cfsprydataset-JSON | cfsprydataset tags that generate Spry JSON data sets |
cfsprydataset-XML | cfsprydataset tags that generate Spry XML data sets |
cftextarea | HTML format cftextarea tags |
cftooltip | cftooltip tags |
cftree | HTML format cftree tags |
cfwindow | cfwindow tags |
<cfajaximport cssSrc="/collegeApp/application/cssFiles"
scriptsrc="/collegeApp/ajaxScripts"
tags="cftooltip, cfwindow">