Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default spry filter

    i am attempting to display a list of comments beneath an image, using 2 xml
    datasets. what i would like to do is filter the comments dataset depending upon
    the current image.
    i have been using the spry filter() function and can successfully filter my
    dataset if i use a number or a string as an argument. what i want to do is pass
    in a dataset variable.

    Alternetively, is there another method i should consider ?

    eg for dataset dscomments, i want to filter by imageID from dsimages

    this works fine...

    var ffcomments = function(dataSet, row, rowNumber)
    {
    if (row["ImageID"] == 90)
    return row;
    return null;
    }

    dscomments.filter(ffcomments)

    this fails

    var ffcomments = function(dataSet, row, rowNumber)
    {
    if (row["ImageID"] == {dsimages::imageID})
    return row;
    return null;
    }

    dscomments.filter(ffcomments)

    crushfor Guest

  2. Similar Questions and Discussions

    1. Spry Bar Help
      Alright guys I am kind of a newbie when it comes to dreamweaver (I was always a fan of golive because of its simplicity). Anyways I am running...
    2. Combine Spry Tabbed Panel and Spry HTML Panel
      I would like to maintain the presentation of the tabbed panel and utilize its ability to load content from a Spry Dataset, but I would also like to...
    3. Can spry do this?
      I want to have submenus display a block before I mouse over them... looky here at the menu on this page and you will see the problem ...
    4. #40499 [NEW]: filter sapi does not register any highlightning filter
      From: php at henke37 dot cjb dot net Operating system: any PHP version: 6CVS-2007-02-15 (CVS) PHP Bug Type: Apache2 related...
    5. Data Grid Header Filter Renderer or how do I get aheader to filter the data in a datagrid.
      Okay so on the same theme as why isn't the datagrid like Excel, I have created a (very cool) Filter header. 1) The filter looks like any other...
  3. #2

    Default Re: spry filter

    crushfor wrote:
    > if (row["ImageID"] == {dsimages::imageID})
    The Spry tokens are not replaced, and as such, the token you're using has no direct value. You'd need to access the dsimages JavaScript object to access the imageID value. Sorry I've not worked much with the datasets so I don't know specific syntax to get that value out, but you should ask Spry questions in the Spry forum:
    [url]http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602[/url]



    --
    Danilo Celic
    | [url]http://blog.extensioneering.com/[/url]
    | WebAssist Extensioneer
    | Adobe Community Expert
    danilocelic AdobeCommunityExpert 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