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
>

Similar Messages

  • Spry Slideshow Shows All While Loading

    The Spry Slideshow I built shows all the slides at once while it is loading for the first time. Is there a way to quell this, as it makes the viewer a little queasy -- especially on slow-loading connections. I tried moving the "unobtrusive" javascript file to the end of the page, but that did nothing.
    Suggestions?

    Excellent suggestion!
    First, here are the JS files that get linked in the head of the web page:
    SprySlidingPanels.js
    SpryDOMUtils.js
    Second, here is the basic structure of the slideshow (someone else worked on the CSS, so I cannot vouch for it--though the same thing seems to happen in any slideshow I build, so I seriously doubt there is a CSS issue causing this.)
    <div id="newsTicker">
    <div id="ticker" class="SlidingPanels">
    <div class="SlidingPanelsContentGroup">
                <div id="item1" class="SlidingPanelsContent">
                    <img src="irrelevant.jpg" width="641" height="246" alt="doesn't matter" />
                    <div class="next"><a href="#" id="link2">Next &gt;&gt;</a></div>
                </div>
                <div id="item2" class="SlidingPanelsContent">
                    <img src="irrelevant.jpg" width="641" height="246" alt="doesn't matter" />
                    <div class="prev"><a href="#" id="link1">Prev &lt;&lt;</a></div>
                    <div class="next"><a href="#" id="link3">Next &gt;&gt;</a></div>
                </div>
                <div id="item3" class="SlidingPanelsContent">
                    <img src="irrelevant.jpg" width="641" height="246" alt="doesn't matter" />
                    <div class="prev"><a href="#" id="link2">Prev &lt;&lt;</a></div>
                    <div class="next"><a href="#" id="link4">Next &gt;&gt;</a></div>
                </div>
                <div id="item4" class="SlidingPanelsContent">
                    <img src="irrelevant.jpg" width="641" height="246" alt="doesn't matter" />
                    <div class="prev"><a href="#" id="link3">Prev &lt;&lt;</a></div>
                    <div class="next"><a href="#" id="link5">Next &gt;&gt;</a></div>
                </div>
                <div id="item5" class="SlidingPanelsContent">
                    <img src="irrelevant.jpg" width="641" height="246" alt="doesn't matter" />
                    <div class="prev"><a href="#" id="link4">Prev &lt;&lt;</a></div>
                </div>
    </div>
    </div>
        <div class="bottback">
            <p class="navLinks">
              <a href="#" id="link1">Link</a> |
              <a href="#" id="link2">Link</a> |
              <a href="#" id="link3">Link</a> |
              <a href="#" id="link4">Link</a> |
              <a href="#" id="link5">Link</a>
            </p>
        </div>
      </div>
    Lastly, here is the "unobtrusive" code:
    //Declare the variable name outside the function so it is global.
    var sp;
    function InitPage()
    sp = new Spry.Widget.SlidingPanels("ticker");
    Spry.$$("#link1").addEventListener("click", function(){sp.showPanel('item1');return false; }, false);
    Spry.$$("#link2").addEventListener("click", function(){sp.showPanel('item2');return false; }, false);
    Spry.$$("#link3").addEventListener("click", function(){sp.showPanel('item3');return false; }, false);
    Spry.$$("#link4").addEventListener("click", function(){sp.showPanel('item4');return false; }, false);
    Spry.$$("#link5").addEventListener("click", function(){sp.showPanel('item5');return false; }, false);
    Spry.Utils.addLoadListener(InitPage);
    What's weird is that I seem to be the only soul in the universe experiencing this. And yet, every single slideshow I develop shows all panels on load... why?

  • Having trouble with dreamweaver cs 6 spry tabbed panels, all content in each tab showes through like

    Having trouble with dreamweaver cs 6 spry tabbed panels, all content in each tab showes through like it was all created on one page, plus mouse over doesnt work on them.
    This started all of a sudden.
    The entire website is a series of spry tabbed panels.
    http://pacificlaser.com/const.html
    if you click on General construction tab things work ok...
    if you click on Machine control tab, mouse over doesnt work and all page content of each tab show through.
    ive been looking for the answer for 4 months with no success.
    Hope a fellow dreamwever-person can help
    Thanks Rick

    You called it: your links to the SpryAssets are linking to your hard drive, not to the files within the folder on the server.
    Correct these links:
    <script src="file:///C:/Users/work/Desktop/Sites/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="file:///C:/Users/work/Desktop/Sites/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    And you should be good to go.
    Beth
    ps. If you run into more difficulties with the Spry Widgets, take your questions to the Dreamweaver Spry Forum http://forums.adobe.com/community/labs/spry, where they will get quicker attention.
    B

  • 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>

  • Spry Slide Show-how to use one size photo for large photo and thumbnail?

    Hi all,
    I'm am using Adobe's Spry Slide Show. I can only use one size photo 640x480px for both the large photo and the thumbnail.
    I changed the size of the small thumnail on the html:
                     <li><a href="Photos/TestPhoto640x480.jpg" width="490" height="367"><img src="Photos/TestPhoto640x480.jpg" width="63" height="47" alt="photos-1.jpg" /></a></li>
    The thumbnail looks fine until you hit Live View or Preview in Browser then photo comes in full size and you can only see the upper left hand corner.
    I assume that the java is doing this. But I have no training in Java.
    How can I change the Java Code so the thumbnail comes in at 63x47px?
    Many thanks.

    Wish I could use scaled down versions of the thumbnails-but I can't.
    Why not?
        img.src = info.src;
        img.style.width =  "490px";<!--Large Photo size on internet-changed from info.width + "px"; to "490px";  *********-->
        img.style.height =  "368px";<!--Large Photo size on internet-changed from info.height + "px"; to "368px";  *******-->
    You're shooting yourself in the foot with this.  It's overriding your HTML and CSS  values.
    As an FYI, Adobe Abandoned the Spry framework late last year.
    http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
    You might want to cut your losses right now and switch to something better suited to modern web devices & browsers.
    jQuery Fancybox
    http://fancybox.net/
    20 of the best jQuery Slideshows
    http://vandelaydesign.com/blog/web-development/jquery-slideshow/
    Nancy O.

  • Spry Slides Showing on Load

    The Spry Slideshow I built shows all the slides at once while
    it is loading for the first time. Is there a way to quell this, as
    it makes the viewer a little queasy -- especially on slow-loading
    connections. I tried moving the "unobtrusive" javascript file to
    the end of the page, but that did nothing.
    Suggestions?

    I should add there is only one item initially selected like a
    simple form.

  • Syncing iphone and can't seem to transfer audiobooks that i have put in a playlist.  Sync menu doesn't show all playlists.  Help

    syncing iphone and can't seem to transfer audiobooks that i have put in a playlist.  Sync menu doesn't show all playlists.  Help

    I have the same problem with podcast playlists.  When I go to the music window in my iPhone devices section, the playlists I have created on my macbook pro in iTunes do not appear as an option to sync with the iPhone.  I know some web radios streams, like the BBC, won't transfer because of compatibility issues, but the playlists of podcasts that I have created consist entirely of podcasts downloaded from the podcasts section on the iTunes Music Store.  They used to show up and sync properly before I upgraded to OS 5.1.1, but now they don't.
    Does anyone have a fix and am I right in surmising that the cause is a glitch in OS 5.1.1?

  • How to show all records by default on search result page?

    Hi
    I am trying to make a search page that would execute the search in the database based on one or more field constraints.
    (Using MySQL,PHP)
    I have  2 columns in the database "vm_ip" (primary key) <IP address>, "Operating_System" <Any, Windows, Solaris, AIX>
    need to search vm_ip based on other two fields.
    PROBLEM: Need to show all the record when I select "Any" in the Operating_System  drop down menu.
    <p>Operating System:
        <select name="os_select" id="os_select">
        <?php
    $os_count=1;
    foreach($os_type as $value) //(os_type is array with possible values of OS)
    echo "<option value=".$os_count.">".$value."</option>";
        $os_count++;
    ?>
          <option value=" " selected="selected">Any</option>
        </select>
      </p>
    this code POSts  NULL value to the search page.
    Below code is of recordset on  search page
    $varOS_virtual = "Operating_System"; // recordset variable set to same as column name (default value)
    if (isset($_POST['os_select'])) //this should not be true
      $varOS_virtual = $_POST['os_select'];
    mysql_select_db($database_xyz_db, $xyz_db);
    $query_virtual = sprintf("SELECT table.VM_IP FROM table
    WHERE table.Operating_System=%s", GetSQLValueString($varOS_virtual, "int"));
    $virtual = mysql_query($query_virtual, $xyz_db) or die(mysql_error());
    $row_virtual = mysql_fetch_assoc($virtual);
    $totalRows_virtual = mysql_num_rows($virtual);
    I expected the 'os_select' field to be null and default value of Operating_System to be "Operating_System" so that the Query shows all records.
    But instead the value being passed in the Query is "0". and no records are shown.
    What can I do to show all records?
    As probably obvious I am new to php/MySQL so all the help is most welcomed .
    Thanks

    Hi
    Thanks for the prompt reply but this does not solve my problem.
    First thing I appologise for giving you incorrect info. Actually I have many more constraints on the search apart from OS.
    Didn't think I would get single constraint specific ans.
    Here is what all i tried and problems I faced:
    1. I cannot use seperate queries cause I have around 7-8 other constraints on the search.
    2. I cannot play around with the Record set code. For some reason even if I mess with it a little bit Dreamweaver stops recognising the recordset. for eg i tried the below code:
    $query_virtual = sprintf("SELECT table.VM_IP FROM table WHERE
    table.Operating_System=%s ,($_POST['os_select']=="")? TRUE:GetSQLValueString($varOS_virtual, "int"));
    this ran well for the first time, and then the record set was screwed up. kept on asking me to "Discover" the links, which it couldn't do.
    3.  take a look at this code:
    $varOS_virtual = "Operating_System";
    if (isset($_POST['os_select'])) {
      $varOS_virtual = $_POST['os_select'];
    $varState_virtual = "State";               //second constraint
    if (isset($_POST['state_select'])) {
      $varState_virtual = $_POST['state_select'];
    mysql_select_db($database_xyz, $xyz);
    $query_virtual = sprintf("SELECT table.VM_IP FROM table AND table.Operating_System=%s AND State=%s",
    GetSQLValueString($varOS_virtual, "int"),GetSQLValueString($varState_virtual, "int"));
    $virtual = mysql_query($query_virtual, $xyz) or die(mysql_error());
    $row_virtual = mysql_fetch_assoc($virtual);
    $totalRows_virtual = mysql_num_rows($virtual);
    here on passing NULL value for "Any"  GetSQLValueString($varOS_virtual, "int") functions returns NULL and though the Default value of
    varOS is set to 'Operating_System" query takes NULL value only which when executed shows no records.
    My problem majorly revolves around how to put something like "WHERE Operating_System= Operating_System" OR  "WHERE Operating_System= TRUE" in the query, when passed through variable they are sent as Strings or NULL.
    Thats why WHERE 1=1 also doesnt work, because it has "WHERE Operating_System= NULL" in AND.
    Logically when NULL is passed default value of variable should comeinto picture, but tha isnt happening.
    Thanks again for answering. hope I was able to explain my problem.

  • Report -- filter with selection list -- show all values after select page

    Hello!
    I have the following problem:
    - I have a report
    - this report can be filtered with a selection-list
    - the selection list is based on dynamic LOV and has a null-value
    - I added the code of the report the following, to filter the report after choosing a value of the selection list:
    ... and (instr(type, decode(:P8_FILTER_type, '%null%',type,:P8_FILTER_type)) > 0)
    This works very well.
    But my problem is: When the user logs out and the next time, he logs in, the selection list shows " --- show all values --- " (my null-display-value) and the report is empty "no values found".
    ---> I want to show the first time, the page is selected ALL the values of the report. (this is now only possile if I press the button which belongs to the selection list)
    I hope, somebody understands my problem.
    Thank you so much,
    LISA

    Hello Lisa,
    The first time it's probably NULL.
    So what you can do in your where: (instr(type, decode(NVL(:P8_FILTER_type,'%null%'), '%null%',type,:P8_FILTER_type)) > 0)
    Off topic: I also wonder if that where clause can't be simpler? Do you rely need the instr?
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • How do you delete songs from iphone5, that are not in your iTunes library on the computer?! I have the spot unchecked where it says show all music and I still have songs on my iPhone that I want gone, but they're not in my iTunes library...HELP

    I have a iPhone 5 with the most up to date software and I have songs appearing on my phone that I've deleted prior too from iTunes on the computer. How do I remove them from my phone, I've tried the left to right swipe and that just plays the songs! :/ Can anyone help me, I'd be forever grateful if I didn't have to go back to the store! I went I today abc he unchecked the show all music and there's still songs I don't want on my iPhone! :(

    The answer to the question in the title of the thread is yes, but it is not necessarily a good idea. At some point you are likely to find you need to restore your iPod for one reason or another, or it could be lost, stolen or damaged. If your songs aren't on your computer, and backed up too, then you will be less than happy.
    tt2

  • Text Entry Box not showing all text

    I am creating a simple exercise where I would like the user to copy text from the course, paste it into word, and report back what the word count is.  I thought perhaps the Text Entry Box would be the best way to go, since if you click on the existing (default) text, you can copy it.  However after I place the paragraph of text in the box, and resize in the editor so that all the text shows, it does not show all the text when playing back, either previewd or published.  It only shows the last few words of the last line at the top of the box.
    Is there something I am missing?  Or, is there an easier/better way to do what I need?
    Thanks

    Hi all
    If this is Captivate 4, there may not be any need for a widget to do this. I'm guessing you haven't tried enabling the Scroll Bar for the Text Entry Box (TEB)?
    When I just plop a TEB on a slide, I get this in edit view:
    During playback it looks like this:
    But if I edit the TEB properties and enable the Show Scrollbar option:
    I get this in the output:
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Rich Text Box Issue - Expand to show all Text

    Hi everyone
    I'm having a pretty frustrating issue with the rich text box when viewing a line item (not when editing the item, but viewing the item)
    I want my rich text box to expand with the text, which I have changed in the options on InfoPath with the "Expand to show all text" scrolling option. However, in IE, the table row will expand, but the actual rich text box will not and I'll have
    a scroll bar there and you cant see all of the text at one time. If I look in Chrome, then it works the way I want and I can see all of the lines of text that were entered into the rich text box.
    The only solution for IE to work correctly is to change the Display settings to "Enable enhanced rich text content...". But the big issue with that is now you can no longer highlight the text (the highlight disappears right after highlighting it),
    and the users will need to copy text from the text box, so it renders the "enhanced" rich text box useless for us
    It's kind of a lose-lose situation that I'd love to find the solution for

    I guess a better solution would be how can you highlight text from an enhanced rich text box, because changing these to "rich text box" gets rid of font colors in the pre-existing data.
    The original problem was that they couldn't highlight text unless they went into edit mode

  • InfoPath 2013 - Rich Text box - Expand to show all text option not working

    I have create an InfoPath form and created a view which will be used for printing. I have a rich text box in this print view and the scroll option for this rich text box is set to "Expand to show all text". However, it is not working and it doesn't
    expand the size of the text box based on the content length.
    same thing used to work in InfoPath 2010.
    Any suggestions?
    Thanks,
    Neelesh

    Hi Wendy,
    Here are the steps I have used:
    1. On default view added a rich text box.
    2. Created another view called Print and mapped it to the same Field which I added to default view
    3. Set the Wrap text and Expand to show all text on both the Rich Text Box Properties - in default view and in Print
    view. Also set the height of the rich text box to auto.
    4. Set the print views as the print view for default view
    5. Deployed the form to SharePoint Form Library
    6. Opened the form in browser
    7. Entered the content in the rich text box in default view. It expands well if I have much content
    8. Clicked on Print preview and that opens up the print preview and it shows the rich text box only one line in height and with scroll bar
    I missed to mention that it is a web browser enabled form and I am using InfoPath 2013 and SP 2013.
    It does work fine in InfoPath client.
    Thanks.

  • IPhone not showing all replies to group messages

    In the last month my iPhone 5 has stopped showing all replies to group messages.
    For example a friend shall send a group message to another friend and I, I shall either  not see this message but see another friends reply in a text message that appears to be between the two of us. Or see the group message as an individual conversation between two people with no replies from other parties.
    I am currently running iOS 7.1.1
    Can anyone help me?

    did you ever fix this issue?? Same thing happening to me as well.

  • SelectOneChoice not showing all values from database

    Hi!
    I have to put a list of values in my select one choice. When I do the query in database, all the values are selected. But, with the same query on JPQL, the select on choice do not show all values in database. Anyone can help me, please?
    P.S.: I am using SelectOneChoice with SelectItems, in JDeveloper 11g
    Code:
    <af:selectOneChoice id="selAction" value="#{row.idCmd}"
    unselectedLabel="&lt;Selecione>">
    <af:forEach var="alertTypeNode"
    items="#{bindings.actionFindAll.iteratorBinding.allRowsInRange}">
    <af:selectItem value="#{alertTypeNode.dataProvider.idCmd}"
    label="#{alertTypeNode.dataProvider.nmCmd}"
    id="si1"/>
    </af:forEach>
    </af:selectOneChoice>

    In your page binding check the rangesize setting for the executable you use - set it to -1.

Maybe you are looking for

  • Date Stamp

    Is there a way to add a date stamp to a Lumia 820 photo? If not can Nokia include such functionality in the next update?

  • PLD excise Info

    I have defined Excise & Other information in Company Details.Now i want to assign those values in PLD - Purchase Order. From which table can i get the information in PLD

  • DNL_CUST_BASIS3 issue

    Hi Gurus , We are in SRM7.0 and ECC 6.0 Extended Classic Scenario. 1.The Middle ware settings are done correctly and product category is replicated without any error. But when we are running DNL_CUST_BASIS3  system is throwing an error . R3AM1 status

  • Dropbox files can be seen by students

    We're using the Vanderbilt building block to access courses. We created dropbox tabs that allow students to upload files and only the instructor to see it. However, after logging into Blackboard, students can see the iTunes U files, which they should

  • Any Java GUI Builder, please?

    Hello everybody! I have to develop a GUI in Java and I am totally rookie on this (Java & GUI development). What I would like to know is whether there is a kind of GUI Builder for Java with free license. I mean, a program which makes me easier to choo