CFTREEITEM target attribute

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFTREEITEM target attribute

    I'm using a CFTREE structure, and I'd like to send the selected value as part
    of the URL to an iframe. The target attribute within cftreeitem seems to be the
    way to do this, but it seems that regardless of the value of the target
    attribute, the URL opens in the same (parent) window instead of the iframe.
    Code appears below. Any thoughts? Thanks.

    <cftreeitem query="rs_categories"
    value="category_id, photo_id"
    display="category_name, image_title"
    queryasroot="no"
    parent="imageSelect"
    target=",childFrame"
    href=" ,viewer.cfm?image_id=#rs_categories.image_id#&"
    >
    myersonconsulting Guest

  2. Similar Questions and Discussions

    1. Using Javascript in CFTreeItem href???
      Greetings all, We're using CFTree with CFTreeItem, and we're looking for the following functionality: when the user click on a branch in the tree,...
    2. question Mark at the end CFTreeitem
      I'm New to CFTree Tag, I got it working in the way i want it but i don't seem to be able to get the ?mark at the end of the url to go away what am i...
    3. cftreeitem value problem
      Using the following tag: cftreeitem value='#File_ID#' display='#File_Full_Name# ' parent='#Client_Name#' href='tab.cfm' queryasroot='No'...
    4. Urgent Help with Target Attribute not working in Href
      What is wrong with this href? no matter what I do it will not work! Okay I need the frameset for this site, I also need all changes to open up in...
    5. Issue with cftreeitem href attribute
      Hello, In CFMX 7, I'm trying to code a simple navigation tree and link to different products (pages). I use the href attribute in cftreeitem and...
  3. #2

    Default Re: CFTREEITEM target attribute

    try removing the , from the target attribute. this should work, we do the
    same thing for the code snippet explorer in the getting started experience.
    (the experience code ships with CF, so you can see the source)

    ---nimer




    "myersonconsulting" <webforumsuser@macromedia.com> wrote in message
    news:d0bdcc$98i$1@forums.macromedia.com...
    > I'm using a CFTREE structure, and I'd like to send the selected value as
    > part
    > of the URL to an iframe. The target attribute within cftreeitem seems to
    > be the
    > way to do this, but it seems that regardless of the value of the target
    > attribute, the URL opens in the same (parent) window instead of the
    > iframe.
    > Code appears below. Any thoughts? Thanks.
    >
    > <cftreeitem query="rs_categories"
    > value="category_id, photo_id"
    > display="category_name, image_title"
    > queryasroot="no"
    > parent="imageSelect"
    > target=",childFrame"
    > href=" ,viewer.cfm?image_id=#rs_categories.image_id#&"
    > >
    >

    Mike Nimer Guest

  4. #3

    Default Re: CFTREEITEM target attribute

    I had this same problem, in your code try putting a space before your target
    attribute. I just had the comma and had the same experience you had. putting
    the space in fixed mine.

    target=" ,childFrame"

    JohnnyKrisma 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