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

  1. #1

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

    nyc_jat 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. Spry Tabbs w/ AutoSuggest AJAX?
      This is what is happening ? http://www.mindfulldesigns.com/autosuggest/autosuggest_city.php...
    4. asynchronous autosuggest
      Anyone have any examples or suggestions on doing an asynchronous autosuggest textbox in Flex? Ben Forta has an ColdFusion/AJAX tutorial which...
    5. 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 ...
  3. #2

    Default Re: Spry AutoSuggest

    nyc_jat wrote:
    > 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.
    Sorry, don't have a ready answer for you, but please ask Spry questions in the Spry forum as you'll find a better focused group of readers:
    [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

  4. #3

    Default Re: Spry AutoSuggest

    thx...sorry bout that
    nyc_jat 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