Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
nyc_jat #1
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
-
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... -
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... -
Spry Tabbs w/ AutoSuggest AJAX?
This is what is happening ? http://www.mindfulldesigns.com/autosuggest/autosuggest_city.php... -
asynchronous autosuggest
Anyone have any examples or suggestions on doing an asynchronous autosuggest textbox in Flex? Ben Forta has an ColdFusion/AJAX tutorial which... -
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 ... -
danilocelic AdobeCommunityExpert #2
Re: Spry AutoSuggest
nyc_jat wrote:
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:> 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.
[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
-



Reply With Quote

