Skip to main content
Inspiring
August 12, 2007
Question

cflayout not importing js

  • August 12, 2007
  • 1 reply
  • 443 views
hi,
I'm using:
<cflayout type="tab" name="tabs">
<cflayoutarea title="Basic" source="basic.cfm">
</cflayout>

basic.cfm includes couple of javascript files, which are not being imported. I tried putting in <cfajaximport /> and <script type="text/javascript" src="libraries/foo.js"></script> in my master page, but still doesnt work.

Any thoughts? Thanks for helping out!
Thank you,
Syed
    This topic has been closed for replies.

    1 reply

    Known Participant
    September 5, 2007
    Syed,

    You may need to identify which tags you want to import with "cfajaximport" here is an example of all the tags:

    <cfajaximport tags="cfdiv, cfform, cfgrid, cfinput-autosuggest, cfinput-datefield, cflayout-border, cflayout-tab, cfmenu, cfpod, cfsprydataset-JSON, cfsprydataset-XML, cftextarea, cftooltip, cftree, cfwindow ">

    Be warned I still had problems using ajax even when I imported all of the tags. I was using the cfselect tag and linking them together with cfc'c. Gave up on it and have moved on to other problems.

    Good Luck

    Mike