cfajaximport

Controls the JavaScript files that are imported for use on pages that use ColdFusion AJAX
tags and features.

  <cfajaximport>

 cfajaximport();

Attribute Reference

scriptsrc string

Specifies the URL, relative to the web root, of the
directory that contains the JavaScript files
used by ColdFusion. When you use this attribute,
the specified directory must have the same
structure as the /CFIDE/scripts directory.

csssrc string

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.

tags string

A comma-delimited list of tags or tag-attribute
combinations for which to import the supporting
JavaScript files on this page.

attributecollection string

You can specify this tag's attributes in an attributeCollection whose value is a
structure. Specify the structure name in the attributeCollection and use the tag
attribute names as structure keys.

Examples
Sample code using the cfajaximport tag

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub