Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default cftree flash format

    I have a client who is griping that they have to click on the arrow on
    the cftree(flah format). Is there a way to allow them to click on the
    folder or the whole row to open instead of the arrow? All help is appreciated.
    Thanks,
    SC

    Gekko64 Guest

  2. Similar Questions and Discussions

    1. Flash format cftree node icons
      While using cftree in Flash format to produce a directory listing type display, I've noticed that the icons for directories that do not contain...
    2. CFTree/flash not loading with 7.02 J2EE Configuration
      We are looking at moving to a J2EE configuration of CF by running our applications on Oracle 10g release 2. We were able to get release 7.0 of CF...
    3. CFGRID and format=flash
      We have been testing CFGRID with format = flash . This works on our dev web server but not our live server. Both are running Wiondows Server 2000,...
    4. CF7 Flash CFTREE HREF
      Say you have code as follows: <cftreeitem href='index.cfm?fuseaction=public.Home'> You get sent to the URL...
    5. decoding flash format
      I have created a form with Flash and recorded results in SQL But the values in the database are with strange values, when i read them with flash...
  3. #2

    Default Re: cftree flash format

    There are 2 versions. The attribute <cfformitem type="script"> only became
    available with the coming of the MX7 Updater.



    <!--- ======== cfsavecontent hack: pre ColdFusion MX7 Updater ======= --->
    <cfsavecontent variable="makeRowClickable">
    /*
    By default you can only click on the arrow of a cftree (flash format) to open
    or close it. This script enables you to click not just on the arrow, but also
    on the folder icon or, in fact, anywhere on the whole row, to open or close an
    item.
    */
    var theTree=treeObj;
    var thisNode=theTree.selectedNode;
    var idx = theTree.getDisplayIndex(thisNode);
    if (theTree.getIsOpen(thisNode)){
    theTree.setIsOpen(thisNode,false);
    }
    else {
    theTree.setIsOpen(thisNode,true);
    }
    thisNode=theTree.getNodeDisplayedAt(idx);
    </cfsavecontent>

    <cfform name="treeClickForm" action="#cgi.script_name#" format="Flash">
    <cftree name="treeObj" format="object" hscroll="No" vscroll="No" border="No"
    onchange="#makeRowClickable#" >
    <cftreeitem value="Divisions">
    <cftreeitem value="Development"
    parent="Divisions" img="folder">
    <cftreeitem value="Product One"
    parent="Development" img="document">
    <cftreeitem value="Product Two"
    parent="Development">
    <cftreeitem value="GUI"
    parent="Product Two" img="document">
    <cftreeitem value="Kernel"
    parent="Product Two" img="document">
    <cftreeitem value="Product Three"
    parent="Development" img="document">
    <cftreeitem value="QA"
    parent="Divisions" img="folder">
    <cftreeitem value="Product One"
    parent="QA" img="document">
    <cftreeitem value="Product Two"
    parent="QA" img="document">
    <cftreeitem value="Product Three"
    parent="QA" img="document">
    <cftreeitem value="Support"
    parent="Divisions" img="fixed">
    <cftreeitem value="Product Two"
    parent="Support" img="document">
    <cftreeitem value="Sales"
    parent="Divisions" img="computer">
    <cftreeitem value="Marketing"
    parent="Divisions" img="remote">
    <cftreeitem value="Finance"
    parent="Divisions" img="element">
    </cftree>
    <!--- <cfinput name="sbmt" type="Submit" value="submit"> --->
    </cfform>



    <!--- ===== cfformitem version: for ColdFusion MX7 Updater or newer ===== --->
    <cfform name="treeClickForm" action="#cgi.script_name#" format="Flash">
    <cfformitem type="script">
    function makeRowClickable () {

    /*
    By default you can only click on the arrow of a cftree (flash format) to
    open or close it. This script enables you to click not just on the arrow, but
    also on the folder icon or, in fact, anywhere on the whole row, to open or
    close an item.
    */

    var theTree = treeObj;
    var thisNode=theTree.selectedNode;
    var idx = theTree.getDisplayIndex(thisNode);
    if (theTree.getIsOpen(thisNode)){
    theTree.setIsOpen(thisNode,false);
    }
    else {
    theTree.setIsOpen(thisNode,true);
    }
    thisNode=theTree.getNodeDisplayedAt(idx);
    }
    </cfformitem>
    <cftree name="treeObj" format="object" hscroll="No" vscroll="No" border="No"
    onchange="makeRowClickable()" >
    <cftreeitem value="Divisions">
    <cftreeitem value="Development"
    parent="Divisions" img="folder">
    <cftreeitem value="Product One"
    parent="Development" img="document">
    <cftreeitem value="Product Two"
    parent="Development">
    <cftreeitem value="GUI"
    parent="Product Two" img="document">
    <cftreeitem value="Kernel"
    parent="Product Two" img="document">
    <cftreeitem value="Product Three"
    parent="Development" img="document">
    <cftreeitem value="QA"
    parent="Divisions" img="folder">
    <cftreeitem value="Product One"
    parent="QA" img="document">
    <cftreeitem value="Product Two"
    parent="QA" img="document">
    <cftreeitem value="Product Three"
    parent="QA" img="document">
    <cftreeitem value="Support"
    parent="Divisions" img="fixed">
    <cftreeitem value="Product Two"
    parent="Support" img="document">
    <cftreeitem value="Sales"
    parent="Divisions" img="computer">
    <cftreeitem value="Marketing"
    parent="Divisions" img="remote">
    <cftreeitem value="Finance"
    parent="Divisions" img="element">
    </cftree>
    <!--- <cfinput name="sbmt" type="Submit" value="submit"> --->
    </cfform>

    BKBK Guest

  4. #3

    Default RE: cftree flash format

    All rows including the bottom-level ones that when clicked would go off and do something. With this code above in place, those bottom-level rows don't open up but rather do nothing. How can this concept appy only to folders and not the underlying item?

    Thanks,
    Alla

    From [url]http://www.developmentnow.com/g/66_2007_3_0_0_942739/cftree-flash-format.ht[/url]

    Posted via DevelopmentNow.com Group
    [url]http://www.developmentnow.com/g/[/url]
    Allan Jagos Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139