Spry preference problem

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

  1. #1

    Default Spry preference problem

    I setup a Spry container on this site's home page
    ([url]http://www.profitpt.com/index.asp[/url]) to organize several different services. The
    container allows the user to switch between different static content pieces.
    The Spry is based on on of the Adobe "Aquo" demo site features. When the page
    loads, it open with the first static content sections (Infrastructure
    Planning). However the tab is displaying the light blue shading, rather than
    the darker blue that should be displayed when the user selects a category.

    I'm sure there is a setting to change this, buit I can't seem to find it.

    Any help would be appreciated.[url]http://www.profitpt.com/index.asp[/url]

    aquo.com Guest

  2. Similar Questions and Discussions

    1. Spry menu bar and z-index problem
      The z-index with ie thing is giving me fits on the Spry horizontal menu bar application, and I could really use some advice. I have 3 elements below...
    2. Spry Vertical Menu, Firefox, Focus Indication Problem
      Hi All, I am using Dreamweaver CS4 to create a portfolio site for my work and ran into a problem when testing my Vertical Spry Navigation Menu...
    3. Problem with Spry Horizontal Menu Bar
      I'm trying to implement a Spry Horizontal Menu Bar. I have it at: http://www.mranchtest.com/ It looks great in IE, but funky in FireFox... How to...
    4. Sub sub menu problem in spry vertical
      on the following page: http://www.bellwetherproductions.com/newsite/about.html If you roll over about, our rector, there is a sub-sub menu item,...
    5. Spry Horizontal Menu sizing Problem
      I have been trying to set the overall size of the menu to 800px wide but every time I do it makes every button that size. I tried the help for...
  3. #2

    Default Re: Spry preference problem

    Hi:
    Try this trick:
    You will find that the TR tag wrapping your first tab looks like this:
    <tr class="eventrow" spry:hover="rowHover" spry:select="rowSelected">

    Try changing it to:
    <tr class="eventrow rowSelected" spry:hover="rowHover"
    spry:select="rowSelected">

    HTH

    Andres Cayon
    Spain Adobe Dreamweaver User Group
    [url]http://www.dwug.es[/url]
    ----------------------


    "aquo.com" <webforumsuser@macromedia.com> escribió en el mensaje de noticias
    news:fth6en$bls$1@forums.macromedia.com...
    >I setup a Spry container on this site's home page
    > ([url]http://www.profitpt.com/index.asp[/url]) to organize several different
    > services. The
    > container allows the user to switch between different static content
    > pieces.
    > The Spry is based on on of the Adobe "Aquo" demo site features. When the
    > page
    > loads, it open with the first static content sections (Infrastructure
    > Planning). However the tab is displaying the light blue shading, rather
    > than
    > the darker blue that should be displayed when the user selects a category.
    >
    > I'm sure there is a setting to change this, buit I can't seem to find it.
    >
    > Any help would be appreciated.[url]http://www.profitpt.com/index.asp[/url]
    >
    Andres Cayon Guest

  4. #3

    Default Re: Spry preference problem

    Andres, thanks for your suggestion. Unfortauntely, this solution does not work
    because the code is using a repeat function. When I changed the code to reflect
    your recommendation, ALL of the tabs changed to the "select" color.

    The actual code for this container looks like this:

    <div id="content1" spry:region="dsEvents">
    <table id="events">
    <tr>
    <th id="eventheader">Supply chain Services</th>
    </tr>
    <tr class="eventrow" spry:repeat="dsEvents" spry:hover="rowHover"
    spry:select="rowSelected" spry:setrow="dsEvents">
    <td><span class="eventname"><img src="images/spacer.gif" width="30"
    height="20" border="0" />{name}</span><br /> </td>
    </tr>
    </table>
    </div>

    Any other ideas?

    aquo.com Guest

  5. #4

    Default Re: Spry preference problem

    Oh I see: You are populating it using ASP code...

    Then, why not something a control variable?
    I'm not an ASP coder, but you should get the point:

    <% dim isFirstRow=true %>
    <% begin loop %>
    <tr class="eventrow<% If isfirstRow==true Then %> rowSelected<% End If;
    isFirstRow=false %>" spry:repeat="dsEvents" spry:hover="rowHover"
    spry:select="rowSelected" spry:setrow="dsEvents">
    <% end loop %>

    That is: We set a control variable to true and when the condition matches
    for the first time (first row) we set it to false and the class won't be
    added to the following rows

    Hope it makes sense
    --
    Andres Cayon
    Spain Adobe Dreamweaver User Group
    [url]http://www.dwug.es[/url]
    ----------------------


    "aquo.com" <webforumsuser@macromedia.com> escribió en el mensaje de noticias
    news:ftj3u5$ip1$1@forums.macromedia.com...
    > Andres, thanks for your suggestion. Unfortauntely, this solution does not
    > work
    > because the code is using a repeat function. When I changed the code to
    > reflect
    > your recommendation, ALL of the tabs changed to the "select" color.
    >
    > The actual code for this container looks like this:
    >
    > <div id="content1" spry:region="dsEvents">
    > <table id="events">
    > <tr>
    > <th id="eventheader">Supply chain Services</th>
    > </tr>
    > <tr class="eventrow" spry:repeat="dsEvents" spry:hover="rowHover"
    > spry:select="rowSelected" spry:setrow="dsEvents">
    > <td><span class="eventname"><img src="images/spacer.gif" width="30"
    > height="20" border="0" />{name}</span><br /> </td>
    > </tr>
    > </table>
    > </div>
    >
    > Any other ideas?
    >
    Andres Cayon Guest

  6. #5

    Default Re: Spry preference problem

    No, actually I am not using ASP to populate the page. This is Spry.

    Help?!?
    aquo.com Guest

  7. #6

    Default Re: Spry preference problem

    Then, the best idea would be using some spry conditions:

    -if the current row {ds_RowNumber} equals the currently selected rowID
    {ds_CurrentRowID}, display a selected tr; if it doesn't, display a normal tr

    -When the dataset loads {ds_CurrentRowID} is 0 by default, so
    {ds_RowNumber}=={ds_CurrentRowID} is true for the first row (0==0)

    So, this code should work

    <div id="content1" spry:region="dsEvents">
    <table id="events">
    ....
    <!-- repeat elements inside the tbody-->
    <tbody spry:repeatchildren="dsEvents">

    <!-- condition: display this tr with a spry:selected attribute if
    {ds_RowNumber}== {ds_CurrentRowID} -->
    <tr spry:if="{ds_RowNumber}== {ds_CurrentRowID}" class="eventrow"
    spry:hover="rowHover" spry:select="rowSelected" spry:setrow="dsEvents"
    spry:selected="selected">
    <td>{name}</td>
    </tr>

    <!-- condition: display this tr without a spry:selected attribute if
    {ds_RowNumber}!= {ds_CurrentRowID} -->
    <tr spry:if="{ds_RowNumber}!= {ds_CurrentRowID}" class="eventrow"
    spry:hover="rowHover" spry:select="rowSelected" spry:setrow="dsEvents">
    <td>{name}</td>
    </tr>

    </tbody>
    </table>
    </div>


    It's a bit hard to explain, but if you look at the code you will see it's
    not that difficult

    HTH
    --
    Andres Cayon
    Spain Adobe Dreamweaver User Group
    [url]http://www.dwug.es[/url]
    ----------------------


    "aquo.com" <webforumsuser@macromedia.com> escribió en el mensaje de noticias
    news:ftjgtf$3du$1@forums.macromedia.com...
    > No, actually I am not using ASP to populate the page. This is Spry.
    >
    > Help?!?
    Andres Cayon 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