Spry Autosuggest widget

Hi all
I an trying to use the spry auto suggest widget and so far it
works fine but I would like to be able to have the results div
overlay my web page rather than push the contents down as I am new
to all this I would appreciate any possible help or advice

In CSS, set your suggestion div class to position: absolute
and it will overlay instead of pushing the contents down.
Beware though, some things have the possibility of "bleeding
through" in IE6, and tabs in the tabbed panels will also bleed
through/overlay the suggestion div. If you have either of these
cases, you will have a lot of frustration ahead of you.

Similar Messages

  • Spry Autosuggest: Show All

    Does anyone know of a way to make the Spry AutoSuggest Widget show all options when you first click on it?
    var SpryAutoSuggest3 = new Spry.Widget.AutoSuggest('statusform', 'suggestedStatus', 'dsStatus', 'statusType', {loadFromServer: true, urlParam: 'status'});
    This grabs the data from the XML file as you type it. The XML is database generated on the fly. The XML either shows all the options, or just the ones beginning with the string passed to it from the form field.
    I just want to show all the options when the field is first clicked, and allow them to type if they want to filter it down. My only other option is a normal select list, but thats not as fun
    Cheers,
    Steve

    You can manually try to trigger the `onPostLoad` event: dsFaultCodes.notifyObservers('onPostLoad')
    As usual I answer my own question just moments after posting it!
    function showList(event){
        dsFaultCodes.removeAllFilters(true);
        dsFaultCodes.loadData();
        SpryAutoSuggest.showSuggestions(true);
    This does work, but only once, if you clear the field and try to start again it wont list them all, just the last one you selected. For some reason the removeAllFilters isn't working.
    Any ideas?
    Cheers,
    Steve
    >

  • Spry AutoSuggests Help

    Hi,
    So I have a Spry autosuggests widget and when the length of
    the text field is < 3 i would like it to show ALL the details...
    the results div is static and I use it as part of a master detail
    layout.
    Thanks in advance Phil.

    Hi,
    change your xml structure so that each quickLink tag is
    wrapped in a quickStart tag, like this:
    ====================== new xml =================
    <?xml version="1.0" encoding="iso-8859-1"?>
    <newHire>
    <quickStart>
    <quickLink linkUrl="#">Accessing Activant systems and
    launching the VPN</quickLink>
    </quickStart>
    <quickStart>
    <quickLink linkUrl="#">Navigating the Employee
    Intranet</quickLink>
    </quickStart>
    <quickStart>
    <quickLink linkUrl="#">Using the Employee Training
    Portal</quickLink>
    </quickStart>
    <quickStart>
    <quickLink linkUrl="#">Using CEP</quickLink>
    </quickStart>
    </newHire>

  • New feature for autosuggest widget

    Hi Spry developers!
    I have implemented a new feature in autosuggest widget, and I
    ask you if you can add this feature in Spry 1.6 release...
    You can view my example here:
    Multiple
    Autosuggest Example
    You can choose a splitting string that reinitialize the
    autosuggest, so you can have multiple suggestion with one input
    text field only...
    Let me know what you think about this!
    Thank a lot and best regards!

    Hi shakexx,
    Thanks for sharing your patch with us. I've opened a request
    for integration in our bug base. Just to set expectations ... we're
    winding down for Spry 1.6 so I wouldn't expect it to go in for the
    up-coming release.
    --== Kin ==--

  • Spry Autosuggest

    Hi,
    I am trying to use spry autosuggest. I have written the below
    code but I am not sure how to use the "loadfromserver". The adobe
    documentation says to use {loadFromServer: true, urlParam: "prd"}.
    What should be my urlParam? Will var dstest remain same? Thanks in
    advance.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript"
    src="lib/ajax_framework.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="SpryAssets/SpryAutoSuggest.js"></script>
    <link href="SpryAssets/SpryAutoSuggest.css"
    rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var dstest = new Spry.Data.XMLDataSet("activityname.xml",
    "mysqldump/database/table_data/row/field");
    //-->
    </script>
    </head>
    <body>
    <form action="" method="get" id="test">
    <div id="mySuggest">
    <input type="text" name="text1" value="Select Activity"
    onfocus="if(this.value=='Select Activity')this.value='';"/>
    <div id="resultsDIV" spry:region="dstest">
    <li
    spry:repeat="dstest"spry:suggest="{field}">{field}</li>
    </div>
    </div>
    <script type="text/javascript">
    var as1 = new Spry.Widget.AutoSuggest("mySuggest",
    "resultsDIV", "dstest", "field", {containsString: true});
    </script>
    </form>
    </body>
    </html>

    Are you still working on this?
    If so, what server platform are you using? I'm pretty new to using Spry and I'm using Cold Fusion. I do have autosuggest working with using a Cold Fusion page to return data from the database.
    You can read through the examples I have posted in another thread here where I was having a somewhat different problem. That is here:
    http://forums.adobe.com/message/2689707
    -Bill

  • How do i link to a specific tab using the spry tabbed widget

    Hello i'm working on a microsite using the spry tabbed widget. I'm having trouble figuring out how to link to a specific tab using a an external link.
    here is the site. http://www.efaxcorporate.co.uk
    for example: if i wanted to give a user a url link specifically tab#2.
    Im sure this is really easy i just can't seem to figure it out.

    Try http://foundationphp.com/tutorials/spry_url_utils.php

  • Help with Spry Rating Widget within a Spry Repeating Region

    My link  http://www.youthinkyougotitbad.com
    This is a long question, but it seems to me if answered somewhere it could help alot of people in the spry community creating comment boards as it uses three important spry widgets: rating, repeating, and tabbed panels. I am trying to use spry rating widget within a spry repeating region within a spry tabbed panel with xml. I was trying to go with the pulse light script (http://forums.adobe.com/message/3831721#3831721) but Gramps told me about the spry rating widget. But I have ran into a couple more problems. First, I couldnt find that much information on the forums or online about how to do the php page with the spry rating widget. None of these have any information on how to do it:
    http://labs.adobe.com/technologies/spry/articles/rating_overview/index .html
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/rating. html
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.ht ml
    And it seems that the official examples are so poor (or I am just ignorant, which def could be a possiblity) it shows
    to set the initial rating value from the server, but uses a static value of 4
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.html
    <span id="initialValue_dynamic" class="ratingContainer">
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>      
             <input id="spryrating1_val" type="text" name="spryrating1" value="4" readonly="readonly" />
             <span class="ratingRatedMsg sample">Thanks for your rating!</span>
    </span>
    <script>
    var initialValue_dynamic = new Spry.Widget.Rating("initialValue_dynamic", {ratingValueElement:'spryrating1_val'});
    </script>
    I finally found a site that has the php and mysql setup.
    http://www.pixelplant.ro/en/articles/article-detail/article/adobe-widgets-for-download.htm l
    But its not perfect. It has the same problem that I ran into with Pulse light, that you had to use php echo within the spry repeating region to set the initial value from the server:
    <span id="spryrating1" class="ratingContainer">
             <span class="ratingButton"></span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="<?php echo $row['average']?>"/>
            </span>
            <script type="text/javascript"
                var rating1 = new Spry.Widget.Rating("spryrating1", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id=spryrating1&val=@@ratingValue@@'});
            </script>
    So instead, I tried with three of my panels (www.youthinkyougotitbad.com) to get the average rating from xml by using the following queries:
    Recent
    Returns the blurts in most recent order along with average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC
    Wet Eyed
    Returns the blurts in highest ratings order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r Desc
    Dry Eyed
    Returns the blurts in lowest rating order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r
    These all return the correct xml in the correct order.And they return the average rating of each blurt which I can send to my page with xml.
    My first question is that I dont know how to configure the query on my fourth panel Empathized & Advised the same way because it already has a Group By for the Comment Id.
    SELECT `Comment`.id_Blurt, COUNT(*) as frequency, Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt, `Comment` WHERE Blurt.Id_blurt = `Comment`.id_Blurt GROUP BY `Comment`.id_Blurt ORDER BY COUNT(*) DESC";
    Not sure if you guys need more information to understand that all, if so just ask.
    So after I get my average value through xml to the first three panels, I set my spry repeating region up like this:
    (Blurt panel)
    <div spry:region="pv1" spry:repeatchildren="pv1">           
               <div class="blurtbox">
                <!--  most recent blurt tab-->
                <h3> "{pv1::Blurt}"</h3>
                <p> Blurted from {pv1::Location} at {pv1::Date}</p>
                <p>Empathize or Advise about {pv1::Name}'s Blurt #<a href="detailblurt.php?blurtid={pv1::Id_blurt}"> {pv1::Id_blurt}</a></a></p>
               <span id="{pv1::Id_blurt}" class="ratingContainer">
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingRatedMsg">Thank You! Your tears have been tallied.</span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="{pv1::average_r}"/>
            </span>
            <script type="text/javascript">
                // overview of available options and their values:
                // http://labs.adobe.com/technologies/spry/articles/rating_overview/index.html
                var rating1 = new Spry.Widget.Rating("{pv1::Id_blurt}", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id={pv1::Id_blurt}&val=@@ratingValue@@'});
            </script>
                 <br/>
               </div>
              </div>
    Ok, it registers the right vote in the database with the right blurt id each time. But I am having two problems so far:
    One, even though {pv1::average_r} returns the correct average through xml, it doesn't show the initial rating value for each of the repeating blurts. It seems to show the first one correct, and then just repeat that same value to the other ones that follow. I just dont understand since it can get the correct server value right after you vote (afterRating:'serverValue), that I can't manipulate spryrating.js in some way that I could just replace 'ratingValue' in ratingValueElement:'ratingValue' with something to give me the initial server value.
    Two: Is even more mysterious to me, if you play around with voting on the site, sometimes you are unable to vote on different blurts. Its weird. It seems like that the javascript is completely off just on those blurts. And sometimes its a whole row, sometimes none. But so far its never a problem on the first tabbed panel (Recent), only on the other three. As far as I know, the coding is exactly the same in each tab's repeating region except for the different xml input.
    And, now on the live server, sometimes the pics of tears used to voting dont show up until you click.
    Any help on those three questions (how to query the fourth panel, how to show the initial server value, and the glitches with voting) would be greatly appreciated!! I looked pretty hard on adobe forums and other sites, and didnt see much on how to really use the spry rating widget with php and xml.
    Thanks!!

    Update:
    Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
    So I replaced it with what I originally had.
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
    But this doesn't provide me with the initial average rating:(

  • Spry Validation widgets not working on local WAMP server

    I just started the process of creating a contact page. I got the client side done last night, woke up this morning and panicked. The spry validation widgets weren't working anymore. I re-did the entire page and realized it was only the contact.html page in the wamp directory that wasn't working. All the needed CSS and javascript assets are there and in the proper folders, so what's up?
    (I'm still in the middle of the lynda.com series Dreamweaver CS5 with PHP and MySQL , so I'm not even certain where I'm heading just yet. I'm doing stuff as I think I understand it.)

    OK, this is interesting. It works online, but not in local cache.
    Here's the contact page on my website: http://www.ladyhawkslair.com/contact.html (So far, GNDN: goes nowhere; does nothing.)
    And here's the WAMP version: http://www.ladyhawkslair.com/wamp/contact.html
    worky-worky online.
    No worky-worky when I preview in Firefox on my system.
    Wait. Hold that thought.
    I only refuses to work when I preview it in Firefox THROUGH Dreamweaver. Let me test again.
    Verified.
    The spry widgets don't work when I load them to Firefox WITH Dreamweaver. Interestingly, it works with IE.
    Any ideas, Gramps?

  • SPRY accordion widget IE8 ONLY issue

    hello everybody,
    i noticed a strange "jumpy" behavior while using the spry accordion widget -- this affects IE8 only (currently using 8.0.6001.18882 on vista), other browsers (including IE7 and IE8 forced into IE7 mode) work as expected. this issue seems to be related to the margin property of the accordion container...
    not shure whether this behavior is related to IE rendering or the spry javascript code itself... anyway i made NO changes to the spry script (my version is 0.15, 1.6.1, which i believe to be most recent one).
    the xhtml (strict) and css are perfectly valid (there might be some MINOR css hacks which are not related to the accordion itself). i do NOT use ANY padding on the inner container of the accordion (which would definetely make the spry js count the tween in odd way). the accordions (especially the main menu on the left) are little more complex, but they were built according to the spry widget document, found on the adobe spry website.
    so, here it is -- check the accordion on the left side (the bug seems to happen almost always while opening/closing the last BLUE "section" of the accordion, please play with the accordion for a while to reproduce it -- while the accordion closes, it "loses" it's bottom margin (i guess), what's even more wierd, everything gets back to place after you move a mouse):
    http://www.prazskematky.cz/home.php
    PLEASE NOTICE: since the website is still under development and i'm using a IE meta tag to force it into IE7 rendering, to reproduce this behavior please be shure to switch IE engine to IE8 standards mode
    well, we all now how IE handles css... so it's propably an IE bug -- anyway if you have encountered a similar issue of even better found a fix, please let know. (i don't consider a fix switching to another js library, i would like to use the spry, because of it's DW integration)
    many thanks,
    p.s.

    ross m. greenberg wrote:
    > Now however the entire .gif is not appearing in the
    accordion panel is expanded. I insert the graphic using a standard
    "menu insert/graphic/browse and select"
    >
    > the graphic file is not showing up properly on such an
    insert...
    Are you referring to what it looks like in Design view? If
    so, that's
    correct. Accordion panels have a fixed height. From memory, I
    think it's
    200px. However, if you test the page in a browser, you should
    see a
    scrollbar automatically generated on panels that have content
    that
    exceeds the height of the panel.
    If you want flexible-height panels in the accordion, you need
    to adjust
    both the CSS and the script that initializes the accordion. I
    have
    covered all the details in my "Essential Guide to Dreamweaver
    CS3" (and
    the forthcoming CS4 edition). You can probably find online
    tutorials as
    well. Try a Google search for Spry flexible height accordion.
    The accordion widget has been around since CS3, and it hasn't
    changed in
    CS4, so a Google search should bring up a lot of information.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Reliability of Spry Accordion Widget

    I posed a question in this forum last week and was unable to
    get a helpful answer to my problem. I am trying to use the Spry
    Accordion Widget on a site:
    http://www.jalc.org/JazzED/s_eac_B.html
    I have researched here to learn how to get the panels to
    start closed with one panel to be open by default. This works
    exactly like expected in Firefox and Chrome but NOT in IE.
    Am I wrong in my assumptions that:
    1) Folks from Adobe monitor this board and chime in with
    answers/solutions or acknowledgement of bugs; and
    2) Spry widgets are a reliable cross-platform technology that
    have had the bugs worked out
    or, is the real case
    1) Adobe folks only look into these forums on an occassional
    basis, if at all; and
    2) Spry widgets should be left alone if you are expecting
    them to perform properly relative to cross-platform capabilities.
    I appreciate anyone's feedback or suggestions on these
    questions.
    Thanks,
    Andy

    I just re-read my post above and am mortified at the tone of
    my message. It was in no way intended to come off as pissy, which I
    fear it might have. Anyone with any thoughts on my issue, I would
    appreciate your feedback.
    Regards,
    Andy

  • Spry Accordion widget

    Have a Dreamweaver question about the Spry Accordion widget.
    I am designing a website for a real estate company. I will have different pages set up as a state page with a sub-level of cities within the page. I am using the accordion widget for the cities. As you know, you click on the panel tab and the next panel drops up or down closing/opening the previous panel.
    What I would like to do is add an action anchor (view all properties) outside the spry widget to open all the panels at once if a client wanted to see the entire list. However, I would still want the functionality of the panels to be collapsible. Is this possible? Is there a bit of code restructuring I would have to do to the JavaScript?

    Try
    <!DOCTYPE html>
    <html>
    <head>
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet">
    <style>
    .openit .AccordionPanelContent {
      display: block !important;
      overflow: visible !important;
      height: auto !important;
    </style>
    </head>
    <body>
    <a href="#" class="openAll">open all</a> - <a href="#" class="closeAll">close all</a>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 1</div>
        <div class="AccordionPanelContent">Content 1</div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <script src="SpryAssets/SpryAccordion.js"></script>
    <script src="SpryAssets/SpryDomUtils.js"></script>
    <script>
    function MyOpenAllEventHandler() {
        Spry.$$("#Accordion1").addClassName("openit");
    function MyCloseAllEventHandler() {
        Spry.$$("#Accordion1").removeClassName("openit");
    Spry.$$(".openAll").addEventListener("click" , MyOpenAllEventHandler, false);
    Spry.$$(".closeAll").addEventListener("click" , MyCloseAllEventHandler, false);
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    </script>
    </body>
    </html>
    The "!important" on these rules is necessary because the Accordion  widget places inline styles on the actual AccordionPanelContent elements  when opening and closing them. Since inline styles have a higher CSS  specificity then CSS class rules, "!important" is necessary to "trump"  the inline styles.
    Gramps

  • DW Tutorial Question (Spry Accordion Widget) Beginner... :-(

    Hi, I've just finished this tutorial (http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt2.html) but have a problem with my Spry Accordion Widget, when I preview the site my footer moves when I select a different panels in the widget, I've read back and checked code/css but I still can't sus it out (Don't laugh if it's something obvious!) Please can anyone help me? I've copied code/CSS below.
    A BIG THANKS IN ADVANCE!!
    INDEX...
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>The Yacht Club</title>
    <link href="main.css" rel="stylesheet" type="text/css" />
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    #sidebar1 { padding-top: 30px; }
    #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="container">
      <div id="header"><img src="images/logo.jpg" width="290" height="144" />
        <!-- end #header -->
      </div>
      <div id="sidebar1">
        <h3>Welcome</h3>
        <ul id="nav"><li><a href="javascript:;">Home</a></li><li><a href="javascript:;">About Us</a></li><li><a href="javascript:;">Membership</a></li><li><a href="javascript:;">Our Boats</a></li><li><a href="javascript:;">Current Races</a></li><li><a href="javascript:;">Contact Us</a></li>
        </ul>
        <div id="Accordion1" class="Accordion" tabindex="0">
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">Atlantic Ocean</div>
            <div class="AccordionPanelContent">Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero.</div>
          </div>
    <div class="AccordionPanel">
            <div class="AccordionPanelTab">Pacific Ocean</div>
            <div class="AccordionPanelContent">Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero.</div>
          </div>
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">Indian Ocean</div>
            <div class="AccordionPanelContent">Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero.</div>
          </div>
        </div>
        <p> </p>
      <!-- end #sidebar1 --></div>
      <div id="mainContent">
        <h1> Luxury Yachts</h1>
        <p><img src="images/sailboat.jpg" alt="Sailboat" width="136" height="310" class="fltrt" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce  varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id,  libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat  feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut,  sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh.  Donec nec libero.</p>
        <h2>Sail to the Bahamas </h2>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
    <!-- end #mainContent --></div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
      <div id="footer">
        <p>&copy; 2009 Luxury Yachts – bring a cup for the bailout</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>
    MAIN CSS...
    @charset "UTF-8";
    body  {
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 100%;
    background-color: #FDFDFD;
    background-image: url(images/body_BG.jpg);
    background-repeat: repeat-x;
    h1, h2, h3 {
    font-weight: normal;
    color: #00583F;
    h1 {
    font-size: 140%;
    h2 {
    font-size: 130%;
    h3 {
    font-size: 120%;
    #container {
    width: 780px;
    margin: 0 auto;
    text-align: left;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    background-image: url(images/container_bg.gif);
    background-repeat: repeat-y;
    #header {
    background-color: #DDDDDD;
    background-image: url(images/headerBG.jpg);
    background-repeat: no-repeat;
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 0px;
    #sidebar1 {
    float: left; /* since this element is floated, a width must be given */
    width: 200px; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 10px 15px 20px;
    ul#nav {
    background-image: url(images/buoy.jpg);
    background-repeat: no-repeat;
    background-position: left bottom;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 153px;
    padding-left: 0px;
    list-style-type: none;
    #nav li a {
    font-size: 90%;
    color: #FFF;
    text-decoration: none;
    background-color: #09553F;
    display: block;
    padding: 4px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #3574A7;
    #nav li a:hover, #nav li a:active, #nav li a:focus {
    color: #123464;
    background-color: #B7DAD8;
    #mainContent {
    margin: 0 0 0 250px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
    padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    #mainContent p, #sidebar1 p, #footer p {
    font-size: 85%;
    line-height: 1.4;
    #footer {
    background-color: #00593D;
    padding-top: 10px;
    padding-right: 0px;
    padding-bottom: 10px;
    padding-left: 270px;
    #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    color: #FFF;
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    SPRY CSS...
    @charset "UTF-8";
    /* SpryAccordion.css - version 0.4 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    /* This is the selector for the main Accordion container. For our default style,
    * we draw borders on the left, right, and bottom. The top border of the Accordion
    * will be rendered by the first AccordionPanelTab which never moves.
    * If you want to constrain the width of the Accordion widget, set a width on
    * the Accordion container. By default, our accordion expands horizontally to fill
    * up available space.
    * The name of the class ("Accordion") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style the
    * Accordion container.
    .Accordion {
    overflow: hidden;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-right-color: #7C9297;
    border-bottom-color: #7C9297;
    border-left-color: #7C9297;
    /* This is the selector for the AccordionPanel container which houses the
    * panel tab and a panel content area. It doesn't render visually, but we
    * make sure that it has zero margin and padding.
    * The name of the class ("AccordionPanel") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel container.
    .AccordionPanel {
    margin: 0px;
    padding: 0px;
    /* This is the selector for the AccordionPanelTab. This container houses
    * the title for the panel. This is also the container that the user clicks
    * on to open a specific panel.
    * The name of the class ("AccordionPanelTab") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel tab container.
    * NOTE:
    * This rule uses -moz-user-select and -khtml-user-select properties to prevent the
    * user from selecting the text in the AccordionPanelTab. These are proprietary browser
    * properties that only work in Mozilla based browsers (like FireFox) and KHTML based
    * browsers (like Safari), so they will not pass W3C validation. If you want your documents to
    * validate, and don't care if the user can select the text within an AccordionPanelTab,
    * you can safely remove those properties without affecting the functionality of the widget.
    .AccordionPanelTab {
    background-color: #00583F;
    margin: 0px;
    padding: 2px;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    color: #FFF;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-top-color: #7C9297;
    border-bottom-color: #7C9297;
    /* This is the selector for a Panel's Content area. It's important to note that
    * you should never put any padding on the panel's content area if you plan to
    * use the Accordions panel animations. Placing a non-zero padding on the content
    * area can cause the accordion to abruptly grow in height while the panels animate.
    * Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
    * Content container.
    * The name of the class ("AccordionPanelContent") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel content container.
    .AccordionPanelContent {
    overflow: auto;
    margin: 0px;
    height: 200px;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    /* This is an example of how to change the appearance of the panel tab that is
    * currently open. The class "AccordionPanelOpen" is programatically added and removed
    * from panels as the user clicks on the tabs within the Accordion.
    .AccordionPanelOpen .AccordionPanelTab {
    background-color: #FFF;
    color: #005b3E;
    /* This is an example of how to change the appearance of the panel tab as the
    * mouse hovers over it. The class "AccordionPanelTabHover" is programatically added
    * and removed from panel tab containers as the mouse enters and exits the tab container.
    .AccordionPanelTabHover {
    color: #AAC7CE;
    .AccordionPanelOpen .AccordionPanelTabHover {
    color: #555555;
    /* This is an example of how to change the appearance of all the panel tabs when the
    * Accordion has focus. The "AccordionFocused" class is programatically added and removed
    * whenever the Accordion gains or loses keyboard focus.
    .AccordionFocused .AccordionPanelTab {
    background-color: #00583F;
    color: #FFF;
    /* This is an example of how to change the appearance of the panel tab that is
    * currently open when the Accordion has focus.
    .AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
    background-color: #FFF;
    color: #00583F;
    Apologies in advance if I'm asking a daft question!!

    Hi,
    using your source code, I couldn't find a really inserted "Spry Accordion". If I do that (translated from german DW) > Insert > Spry > Spry Accordion, I'll find in my DW source code something like that:
      <div id="Accordion1" class="Accordion" tabindex="0">
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Bezeichnung 1</div>
          <div class="AccordionPanelContent">Inhalt 1</div>
        </div>
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Bezeichnung 2</div>
          <div class="AccordionPanelContent">Inhalt 2</div>
        </div>
      </div>
    and in design view:
    Please control your DW-entries.
    Hans-G.

  • Automatically Animating Spry Accordion Widget on Page Load

    I've been searching and searching and still can't find a clue
    as how to make the Spry Accordion Widget automatically open the
    next panel. I want the panels to expand automatically and loop back
    at the last panel.
    Do I need to create another function for this or is there
    already a function created in the .js file?
    Any help is appreciated...even if you can point me in the
    right direction.
    Thanks!

    DeviseInnovations wrote:
    > I've been searching and searching and still can't find a
    clue as how to make
    > the Spry Accordion Widget automatically open the next
    panel. I want the panels
    > to expand automatically and loop back at the last panel.
    >
    > Do I need to create another function for this or is
    there already a function
    > created in the .js file?
    >
    > Any help is appreciated...even if you can point me in
    the right direction.
    Sounds more like you'd want sliding panels:
    http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingPanelsSample.html
    I've seen an automatic version created that might do what you
    want:
    http://www.3rd-eden.com/Spry-it.com/examples/slidingpanelsautomatic/
    But if you really want an Accordion, then you might be able
    to adapt the code in the auto sliding panels above.
    FYI: There's a Spry forum that would be better to post Spry
    related question in:
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Can Spry Accordion widget be nested?

    I am using a Spry Accordion widget as a menu bar but need to
    have the links in the content drop down to another set of links. Is
    this possible? I guess I should ask, has anyone in this forum done
    this successfully? Thanks.

    <div class="AccordionPanelContent">Castaway the: Restaurant<br />
                  1250 Harvard Rd.<br />
                  Burbank, CA 91501<br />
                  - www.castawayrestaurant.com - (818) 848-6691</p>
    Oops!
    Missing the opening <p>
    I didn't find it, the validator did.
    Martin

  • Firefox Spry Accordion widget

    Firefox Spry Accordion widget
    Hello, I am trying to use Spry Accordion  widget. When I click one of the other panels they all turn a strange  neon blue color. Anyone know of any fixes?
    The below is the index page and below that is SpryAccordion.css
    index
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"  />
    <title>Conferences</title>
    <script src="SpryCollapsiblePanel.js"  type="text/javascript"></script>
    <script src="../SpryAssets/SpryAccordion.js"  type="text/javascript"></script>
    <link href="SpryCollapsiblePanel.css" rel="stylesheet"  type="text/css" />
    <link href="css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    </style>
    <link href="../SpryAssets/SpryAccordion.css" rel="stylesheet"  type="text/css" />
    </head>
    <body>
    <div id="outside">
    <div id="outsideone">
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Tab</div>
    <div class="CollapsiblePanelContent">
    <p>Content ssss</p>
    <p>lkajsdfl</p>
    </div>
    </div>
    <script type="text/javascript">
    var CollapsiblePanel1 = new  Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    </script>
    <!--   This is commented out  -->
    <div id="photo"></div>
    <div id="contentholder">
    <div id="contentsone"> <div id="moreone">
    <div id="Accordion1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">Content 1</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 2</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    </div>
    </div> <div id="insidecontentsone"></div></div>
    <div id="lineone"> </div>
    <div id="contentstwo"> <div id="moretwo">
    <div id="Accordion2" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">Content 1</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 2</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    </div>
    </div>
    <div id="insidecontentstwo"></div></div>
    <div id="linetwo"> </div>
    <div id="contentsthree"> <div id="morethree">
    <div id="Accordion3" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">Content 1</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 2</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    </div>
    </div><div id="insidecontentsthree"></div></div>
    </div>
    </div>
    </div>
    <script type="text/javascript">
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { defaultPanel:  1 });
    var Accordion2 = new Spry.Widget.Accordion("Accordion2", { defaultPanel:  1 });
    var Accordion3 = new Spry.Widget.Accordion("Accordion3", { defaultPanel:  1 });
    </script>
    </body>
    </html>
    SpryAccordion.css
    @charset "UTF-8";
    /* SpryAccordion.css - version 0.5 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved.  */
    /* This is the selector for the main Accordion container. For our  default style,
    * we draw borders on the left, right, and bottom. The top border of the  Accordion
    * will be rendered by the first AccordionPanelTab which never moves.
    * If you want to constrain the width of the Accordion widget, set a  width on
    * the Accordion container. By default, our accordion expands  horizontally to fill
    * up available space.
    * The name of the class ("Accordion") used in this selector is not  necessary
    * to make the widget function. You can use any class name you want to  style the
    * Accordion container.
    .Accordion {
    overflow: hidden;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    border-right-color: none;
    border-bottom-color: none;
    border-left-color: none;
    background-image: url(white.png);
    background-color: none;
    border-top-style: none;
    /* This is the selector for the AccordionPanel container which houses  the
    * panel tab and a panel content area. It doesn't render visually, but  we
    * make sure that it has zero margin and padding.
    * The name of the class ("AccordionPanel") used in this selector is not  necessary
    * to make the widget function. You can use any class name you want to  style an
    * accordion panel container.
    .AccordionPanel {
    margin: 0px;
    padding: 0px;
    background-image: url(white.png);
    /* This is the selector for the AccordionPanelTab. This container houses
    * the title for the panel. This is also the container that the user  clicks
    * on to open a specific panel.
    * The name of the class ("AccordionPanelTab") used in this selector is  not necessary
    * to make the widget function. You can use any class name you want to  style an
    * accordion panel tab container.
    * NOTE:
    * This rule uses -moz-user-select and -khtml-user-select properties to  prevent the
    * user from selecting the text in the AccordionPanelTab. These are  proprietary browser
    * properties that only work in Mozilla based browsers (like FireFox)  and KHTML based
    * browsers (like Safari), so they will not pass W3C validation. If you  want your documents to
    * validate, and don't care if the user can select the text within an  AccordionPanelTab,
    * you can safely remove those properties without affecting the  functionality of the widget.
    .AccordionPanelTab {
    background-color: #CCCCCC;
    border-top: solid 1px black;
    border-bottom: solid 0px gray;
    margin: 0px;
    padding: 2px;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    background-image: url(white.png);
    /* This is the selector for a Panel's Content area. It's important to  note that
    * you should never put any padding on the panel's content area if you  plan to
    * use the Accordions panel animations. Placing a non-zero padding on  the content
    * area can cause the accordion to abruptly grow in height while the  panels animate.
    * Anyone who styles an Accordion *MUST* specify a height on the  Accordion Panel
    * Content container.
    * The name of the class ("AccordionPanelContent") used in this selector  is not necessary
    * to make the widget function. You can use any class name you want to  style an
    * accordion panel content container.
    .AccordionPanelContent {
    overflow: auto;
    margin: 0px;
    padding: 0px;
    height: 200px;
    background-image: url(white.png);
    /* This is an example of how to change the appearance of the panel tab  that is
    * currently open. The class "AccordionPanelOpen" is programatically  added and removed
    * from panels as the user clicks on the tabs within the Accordion.
    .AccordionPanelOpen .AccordionPanelTab {
    background-color: #none;
    background-image: url(white.png);
    /* This is an example of how to change the appearance of the panel tab  as the
    * mouse hovers over it. The class "AccordionPanelTabHover" is  programatically added
    * and removed from panel tab containers as the mouse enters and exits  the tab container.
    .AccordionPanelTabHover {
    color: #555555;
    background-image: url(white.png);
    .AccordionPanelOpen .AccordionPanelTabHover {
    color: none;
    background-image: url(white.png);
    /* This is an example of how to change the appearance of all the panel  tabs when the
    * Accordion has focus. The "AccordionFocused" class is programatically  added and removed
    * whenever the Accordion gains or loses keyboard focus.
    .AccordionFocused .AccordionPanelTab {
    background-color: none;
    background-image: url(white.png);
    /* This is an example of how to change the appearance of the panel tab  that is
    * currently open when the Accordion has focus.
    .AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
    background-color: none;
    height: 15px;
    background-image: url(white.png);
    /* Rules for Printing */
    @media print {
    .Accordion {
    overflow: visible !important;
    background-image: url(white.png);
    .AccordionPanelContent {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    background-image: url(white.png);

    Welcome to the Forum!
    If you can upload your page to a server and give us a link, we will be able to look at your page in action. Just seeing the code is not enough.
    Is this the first time you have used an Accordion? It is probable that the bright neon blue you are seeing is the default style, which you can change in the CSS file. I believe it was designed that color to highlight the feature you want to change .
    Take a look in the Accordion's CSS file (it will show as an associated file at the top of your document window) for color rules, and adjust them to suit your palette (and your palate!). Check out the CSS Styles Panel (use Current mode) for a handy way to know what you are looking at. Click on the Accordion in Design View and the rules will be highlighted in the CSS Styles Panel. (Click the right-hand stair-step icon to see the style cascade.)
    Beth

Maybe you are looking for

  • How can I set a name for a unknown place without moving it?

    I imported some photos with GPS information into iPhoto. I can see these photos on the map with one pin per photo, but every pin is tagged with "unknown place". All the photographs were taken on the same island, so I want to add the name of this Isla

  • Fatal error distributing forms with Adobe Acrobat 9 Pro

    Fatal error distributing forms with Adobe Acrobat 9 Pro. I click "Adobe Acrobat Pro/Formularer/Distribuer formularer/" ("Adobe Acrobat Pro/Forms/Distribute forms/") and chose a form for distribution and in the picture "Distribute Form" chose "Automat

  • "Fit to Audio" doesn't work with Transitions?

    It seems that iDVD doesn't account for the added transition times when it calculates the "fit to Audio" slide duration. If I set the transitions to "None", then the photos fit perfectly to the song. However if I choose a transition, the photos go wel

  • Browser without Flash (k)

    I have Flash 8 installed in my Safari browser. I want to test the version sniffer out and make sure it is working for people with Flash 7 or lower. In the old days you could just grab the Flash plugin out of Internet Explorer. How can I test this? -K

  • Service id from a shell script

    I'm attempting to pass a variable into a korn shell script in order to obtain a service_id, which we need to use for load balancing purposes. JOB_STREAM_ID=20 sqlplus user/password@server <<EOF var num_ number; begin select Service_ID into   :num_ fr