Spry Tabbs w/ AutoSuggest AJAX?
This is what is happening …
http://www.mindfulldesigns.com/autosuggest/autosuggest_city.php
http://www.mindfulldesigns.com/autosuggest/autosuggest_zip.php
These AutoSuggest work well separately, but when you combine
them with the SpryTabbed Menu it acts funny.
http://www.mindfulldesigns.com/autosuggest/
(index.html file)
Type the ZIP (75088) in the ZIP code tab and see the results
popup on the Texas City tab.
These are the working files for CITY AutoSuggest:
http://www.mindfulldesigns.com/autosuggest/autosuggest_city.php
http://www.mindfulldesigns.com/autosuggest/ajax_framework_city.js
http://www.mindfulldesigns.com/autosuggest/search_city.php
These are the working files for ZIP AutoSuggest:
http://www.mindfulldesigns.com/autosuggest/autosuggest_zip.php
http://www.mindfulldesigns.com/autosuggest/ajax_framework_zip.js
http://www.mindfulldesigns.com/autosuggest/search_zip.php
mf-designs wrote:
> Type the ZIP (75088) in the ZIP code tab and see the
results popup on the
> Texas City tab.
Sorry, off hand I'm not sure what is going on, and dont' have
time at the moment to investigate, but I'd suggest asking your
question over in the Spry forum:
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
as this forum is focused on Dreamweaver extensions and their
usage.
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert
Similar Messages
-
Spry security (and maybe ajax security)?
Hi there,
I've been used Spry for several sites until now, later i
realized that we can easily request the XML (if use XMLDataSet) by
parsing variable to url directly which would be like this:
http://www.example.com/data_generator.php?var1=x&var2=y
This way was too vulnerable, but in other hand it handy for
developer to ensure their request was acceptable and XML can be
generated.
Is there any way to prevent this? At present i use a session
authentication method for securing XML request, so only user who
have privileges can do the request, otherwise else would fall into
front page (and maybe login page)
That was case if we use dynamic XML (server-side XML
generation), how if we use static XML and no server-side
programming language at all?
Thanks,
Dels"dels2004" <[email protected]> wrote in
message
news:gm5mcn$mbo$[email protected]..
> I've been used Spry for several sites until now, later i
realized that we
> can
> easily request the XML (if use XMLDataSet) by parsing
variable to url
> directly
> which would be like this:
>
http://www.example.com/data_generator.php?var1=x&var2=y
>
> This way was too vulnerable, but in other hand it handy
for developer to
> ensure their request was acceptable and XML can be
generated.
>
> Is there any way to prevent this? At present i use a
session
> authentication
> method for securing XML request, so only user who have
privileges can do
> the
> request, otherwise else would fall into front page (and
maybe login page)
>
> That was case if we use dynamic XML (server-side XML
generation), how if
> we
> use static XML and no server-side programming language
at all?
Personally I would use a .php extension for static XML files
too,
leveraging the existing session authentication mechanism. The
overhead,
compared to use a .xml extension is very, very small.
Massimo Foti, web-programmer for hire
Tools for ColdFusion, JavaScript and Dreamweaver:
http://www.massimocorner.com -
Spry 1.6 Came out on 1 Oct 2007. It has been 1 1/2 years since any major update of the Spry framework.
I can understand that DW CS4 took a lot of time for the SPRY team, but since then we have only one little update, the SpryData.js on 11 Dec 2008. That's it…
I need to know if Spry is dead so I can move on to another framework.
Spry is the best AJAX framework for data related websites. And that is the kind of website I have. Nothing is better!!! But if Spry is dead, I have to look into using something else that will meet all my needs in all areas, not just data.
We all choose Spry because we were told it's in pre release and the developers were looking at adding new functions and features by listening to the community that uses Spry. This was the main benefit of Spry for everyone.
But it looks more and more like it's dead. The developers will not comment on any of the threads that ask about the future of Spry, and to me this is a big indicator of it's state.
If just one of Kin or Donald came out and said "… we have something big around the corner…" then many of us would be excited and continue to use it. But until then I will start to look into JQuery or Mootools to see how difficult it will be to change all my pages to a framework that is expected to keep evolving….
Hope to hear some good news!
KevinThanks for your input on this.
Kin and I have too been frustrated by our lack of time to commit to the process.
As you probably know, we work on the Dreamweaver team as well and that always takes a priority.
We are both bummed that we haven't been able to put out 1.7 in a timely manner.
If I may ask, why isn't there a seperated Spry team than? Iknow Spry is just a small part of Dreamweaver, but I think the future of DW might even depend on a good rock solid ajax framework. Especially after I had seen "Atlas" from 280 North. It could be come an hard punch for Adobe.
We are investigating new ways of putting widgets together and making them more flexible and skinable. We are also throwing around ideas for Spry/jQuery interactions. Nothing solidified yet but we are looking at things.
Please, do not use the jQuery syntax. Its one big reason why I absolutely hate the framework sure the code base is allright but It almost make all code unreadable. do().stuff().here().and().try().to().de().bug().my().issue("please").dont().you().love([" chaining",functions(like,this){alert("no")}]);
This means that Spry is not dead. We are working on things that we hope will be interesting and innovative.
It also means that we can't really give a roadmap for Spry. I am hoping that for the near future, we will be able to release some new things as we perfect them: smaller periodic releases that let's us keep innovating and let's you know that we are investing in the framework.
I already knew this, but I'm still happy when I see you posting this . I love Spry and use it on a daily basis both personal and in an enterprise enviourment.
As far as I can see Spry is a crucial part of Dreamweaver's future, so I don't see it lacking attention. But we have definitely a visibility problem. The team isn't allowed to talk about the roadmap, leaving us in the cold... A very uncomfortable situation, both for Spry's team and the users community.
Massimo
Yeah, so true. But I would also love to see it intergrated in to ColdFusion as default ajax framework . And I fully agree on the visibility problem. I'm in a team of 10 programmers at work. And they are like what is the Spry Framework you are Community Expert in. +_+" ofcourse after few slaps and presentation they where up to date..
But I think this is mainly because all "major" frameworks aren't as issolated as Spry currently is. Typing in jQuery.com is allot easier than labs.adobe.com/technologies/spry and even than the information presented is minimal and requires further investigation to find the info that you want. It might even bee in 5 different locations, API, Samples, LiveDocs, Articles or Devnet and if you are unlucky its not even there at all.
The frustration I see from people is, I think, based on a deep desire to see this project continue, realizing the potential that is clearly evident in what is currently available.
I agree on that point.
I mean, many of the peices of a well-developed framework are here. Instead of waiting around for updates, perhaps we should be developing our own widgets and packages that can be shared in the community.
There are already a few people doing that. Me and Massimo for example have both released some widgets for Spry. And I'm still working a few widgets that will be "released" soon. Such as JSONP support for the SpryJSON dataset this will allow us to some crossdomain JSON requests etc..
Sure, there are some key components that still need to be developed from the top down, but there is plenty that can be done in terms of creating eye-candy that will lure in other users.
Theres actually allot that can be reused, SpryDOMUtils.js and the SpryEffects.js provide almost for what is needed to created custom widgets on your own. A example is an article series the i created for insideRIA:
http://www.insideria.com/2009/02/creating-your-own-side-bar-wid.html
http://www.insideria.com/2009/02/creating-your-own-side-bar-wid-1.html
Without a public code repository, bugtracker and roadmap, there is very little the community could do. Spry has an open source license, but its developing model is completely closed. I already did some work with extensions and add-ons for Spry (see my website). But since all the developing happens behind closed doors, people from the community can't contribute, unless we fork, but that's an option I wouldn't consider (not at this stage at least).
Massimo
Yeah its such a shame that Spry isn't listed at opensource.adobe.com It would be a great candidate for it. And I would love to provide some patches to existing issues in the framework. But the closed development is kinda blocking that as we have no clue what Spry team is doing. Same thing actually counts for widgets. It would be a waste of time if we as 3rd Party developers started creating a Spry syntax based Drag and drop addon and the Spry team is working on the same over at the jQuery UI framework you can see in there wiki what they are working on.
BTW - look how many hits this thread is getting - Adobe,
Its been retweeted a couple times on twitter .
Anyways I will always be on Spry side what ever it will do, I absolutely love the framework and will not swap for any other. (yes even when they decide to implement().chaining().in().the().whole().framework()) -
First let me say i was blowed away with Adobe developing open
source software and using a wiki, I hope you guys continue doing
this for many years to come...
Now lets see a couple of things i would like to see in Spry,
as mentioned the Accessibility and custom tags (validation) problem
are a bit of a worry, you guys should probably take a look at the
way backbase implemented their product, that actually looks like a
very similar approach to what Spry is trying to do.
example of backbase code:
<b:accordeon style="width: 300px;">
<b:accordeonhead>2001</b:accordeonhead>
<b:accordeonbody>
<s:include b:url="data/2001_short.xml" />
</b:accordeonbody>
<b:accordeonhead>Seven Samurai</b:accordeonhead>
<b:accordeonbody>
<s:include b:url="data/seven_short.xml" />
</b:accordeonbody>
<b:accordeonhead>Life is
Beautiful</b:accordeonhead>
<b:accordeonbody>
<s:include b:url="data/bella_short.xml" />
</b:accordeonbody>
<b:accordeonhead>The Godfather</b:accordeonhead>
<b:accordeonbody>
<s:include b:url="data/godfather_short.xml" />
</b:accordeonbody>
</b:accordeon>
from:
http://www.backbase.com/demos/explorer/
Now what i would like to see Spry bring to the Ajax framework
panorama is not the same full blown RIA features of backbase or
TIBCO General Interface, both are commercial, but more on the lines
of an easier to use openrico or moo.fx frameworks.
Stuff that i would like to do with Spry are create simple
widgets that are backed by Ajax calls for instance accordion, tabs,
and have the datasets easily updated with timers, something like
this:
dsObjects = new
Spry.Data.XMLDataSet("/RapidWatcher/ManagedObject/getAll",
"ManagedObjects /Object", { useCache: false }, { setRefresh:
30000});
Say that i have a tabbed RSS feed panel, i want to easily be
able to update each tab independently, or if i have expandable
tabs, i want to be able to easily make them drag able, change the
expand icon, easily sort tables, and stuff like that... I really
don't want a complex, large library i would use backbase for that
or one of the other ajax javascript libraries Dojo, Prototype.
PS: This FuseTalk forum REALLY sucksHi again,
So you seem to be pretty in tune with what we are thinking.
Back is impressive. A very complete framework with probably
the best set of demos in the Ajax world.
In our Ajax paradigm, we want to try to stick with standard
HTML and CSS as much as possible.
We believe that this will make understanding and editing
easier for everyone, since there is little new to learn.
HTML, CSS and javascript provide all the functionality we
need to implement our Ajax vision.
In the product demo, our accordion code looks like:
<div id="Acc1" class="Accordion">
<div class="AccordionPanel">
<div class="AccordionPanelLabel">
<h3>Product Overview</h3>
</div>
<div sprydetailregion="dsProducts"
class="AccordionPanelContent">
<div>{desc}</div>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelLabel">
<h3>New Features </h3>
</div>
<div spryregion="dsProductFeatures"
class="AccordionPanelContent">
<div>
<ul class="">
<li
spryrepeat="dsProductFeatures">{feature}</li>
</ul>
</div>
</div>
</div>
</div>
As I explained in another post, our choice to use custom
attributes was a tough one, but there was little choice without
limiting what we can do. We hope the tradeoff is worthwhile. We are
looking into using XML namespaces, which will allow us to validate.
Keyboard navigation is also on the list.
Give the docs a good look for the abilities of the data
stuff. Sorting and filtering are already there, among others.
As for our use of wikis, well, we are getting pretty savvy
over here. ;)
Thanks for your interest.
Donald Booth
Adobe Spry Team -
Is there a way to make it so Spry is search engine friendly.
(Some is I know).
But when I want to pull an amount of data I want it to be on
the 'page' (view source)... but I don't want it to be just
{title} {subject} {date}
etc...
Is there a way to make all the data in your page friendly?
EX:
Harry Potter Fiction 07/12/03
Something of this sort?
Thanks in advance.Spry is based on AJAX and JavaScript, ajax and javascript
changes the displayed information, not the source code, this is a
KNOWN problem when using AJAX applications.
Google is working a spider that can read and understand Ajax
/ Javascript. But there arent any released dates available, in the
mean while Spry did come up with one handy function and that is
spry:content=
This function will allow to u use ajax functionality when the
users have enabled javascript, and when the users have not enabled
javascript, it will display 'static' source. This might be double
work, but it does the trick. They build a sample of it:
http://labs.adobe.com/technologies/spry/samples/products-hijax/index.html
I hope this will help u out. -
I am building a page similar to the suggest sample that comes
with spry. The one wrinkle is that if the value is not found in the
suggest list, I want to prompt the user, and if they approve add
the record to the database that feeds the suggest list. Can anyone
suggest (sorry for the pun) how this can best be
accomplished?A couple thing:
We now have an Autosuggest widget. The sample you are using
is an early proof of concept using data.
http://labs.adobe.com/technologies/spry/preview/samples/autosuggest/SuggestSample.html
Spry is read only, so we don't have a mechanism to write
records. We do have utilities for submitting form info via Ajax.
Samples are here:
http://labs.adobe.com/technologies/spry/preview/
Look at the Form Submission links.
Hope this helps.
Don -
I've got a "portfolio" site. The user clicks a thumbnail and
javascript basically says: on click; swap image. My image is
sometimes horizontal and sometimes verticle. it was a challenge
getting this to work in IE, but it works. But now in Opera it
almost works, but not quite. the verticle image is fine, but the
horizontal is over about 90px too far to the right.
http://jtleonard.fastmail.fm/work/PF1.htmlUsing Swap Image, it's important to have the images all the
same size ..
otherwise you get strange results. You might check out the
new Spry public
beta using AJAX on
http://labs.adobe.com .. have a
look at the Photo Gallery
and see how it resizes the area to fit the image. (JavaScript
has to be
turned on in the user's browser).
Nancy Gill
Adobe Community Expert
BLOG:
http://www.dmxwishes.com/blog.asp
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"dawndawg" <[email protected]> wrote in
message
news:e5pq6o$79h$[email protected]..
> I've got a "portfolio" site. The user clicks a thumbnail
and javascript
> basically says: on click; swap image. My image is
sometimes horizontal and
> sometimes verticle. it was a challenge getting this to
work in IE, but it
> works. But now in Opera it almost works, but not quite.
the verticle image
> is
> fine, but the horizontal is over about 90px too far to
the right.
>
> <a target=_blank class=ftalternatingbarlinklarge
> href="
http://jtleonard.fastmail.fm/work/PF1.html">http://jtleonard.fastmail.fm/w
> ork/PF1.html</a>
> -
Spry Ajax works perfectly but still generates a CF error in the log
Hello. I am using Spry Autosuggest and it is working
perfectly. However, I notice that is it creating errors in the
ColdFusion log file for variables being sent over the Ajax URL that
ColdFusion "thinks" really don't exist. Any ideas how to stop it
from generating these false-positives in my error log? I could
surround it with a null cftry/cfcatch, but I'm more curious to find
out why the ColdFusion server treats it as an error, when in fact
it's working perfectly. Thanks for any info.Eric,
Thanks so much! That was the problem.
The f4fpackager reference documentation indeed does not state that the password should be scrambled but in most other environments open files contain scrambled passwords, so perhaps you should state there explicitely that the password should be in the clear.
Best regards,
- Naomi -
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,
SteveYou 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
> -
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 -
Ajax load spry/xml dataset....
I'm a noob. And a very frustrated one.
I am using Ajax to load an external page into my main site.
The external page has XML/Spry data attached to it. The page loads
fine when executing the Ajax request, but the page will not display
the XML data. Any ideas? Do I need to embed the xml? How do I
attach the xml to my main page?Do the scripts get loaded when u do the request?, is the page
working when u don't do a request?
Got a url to show? or code snippet? Using 1.6.1? -
Detect full Spry load when loaded through AJaX
Hi. I have run into an issue 'in the vein' of the following
post:
Spry only works on static page???
posted by: gijoevaldez
Created on: September 10th, 215 pm
Solved by: MARIN Cristian
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1299639&enterthread=y
In my case, I have some dynamic Spry code that works in an
isolated html fragment (when run as its own 'page'). But, when I
call that fragment into my master Web page via AJaX calls, it does
not work at all. I've tried moving the data-load call to the master
document, to the AJaX-called fragment, and also added loadData();
here and there, but nothing works. It seems that, as in the post
referred to above, I might need a 'listener'? (I'm not very
familiar with the exact structuring of such a listener, for Spry)
This is the 'html-fragment':
http://www.sabinealberti.com/content2.html
And this is the 'master document':
http://www.sabinealberti.com/index.html
Specifically, within index.html, the AJaX call is in
JavaScript in the header:
function loadContent(objectID,doThis){
if (loadedContact==0){
loadedContact=1;
document.getElementById('welcome').style.visibility='hidden';
loadedContact=1;
var pageRequest=false;
if(window.XMLHttpRequest) pageRequest=new XMLHttpRequest();
else if(window.ActiveXObject) pageRequest=new
ActiveXObject("Microsoft.XMLHTTP");
else return false;
pageRequest.onreadystatechange= function (){
var object= document.getElementById(objectID);
if (pageRequest.readyState!=4){
document.getElementById('loaderImage').style.visibility='visible';
if (pageRequest.readyState==4){
document.getElementById('loaderImage').style.visibility='hidden';
//if (pageRequest.status==200){
object.innerHTML= pageRequest.responseText;
//else if (pageRequest.status==404) {
//object.innerHTML= 'Sorry, that information is not
currently available.';
//else object.innerHTML= 'Sorry, there seems to be some kind
of problem.';
(I've commented out the pageRequest.status verification
because I was running into other problems when those were active).
Another example of the exact same thing can be found in this
page ('About Us', in TutoringNetwork.com):
http://www.tutoringnetwork.com/about.html
In this page, I'm trying to switch between 2 tabbed sections
('about us' and 'one-on-one + group tutoring'). Each of the two is
an HTML fragment called through AJaX/AHAH. Each contains a Spry
Accordion. On initial load, Accordion works great, but when a new
fragment is 'called', data loads but Accordion functionality
'ceases'.
Any hints? (or answers?)
Sandro Alberti
PS I'm re-posting this, from my original posting a few days
ago, because that posting seems to have disappeared and I never
received a reply (probably because of the new forum set-up/reload
in the last week).Hi again. Well, I've solved part of the issue. In Tutoring
Networks ('About 'section), what was not re-loading was a widget
(Accordion). By re-calling it in the "readyState==4" of AJaX, it
now loads well. The same goes for the Field Verification widget I
had in the 'Buy' section of Sabinealberti.com
However, in that 'Buy' section (Sabinealberti.com), there is
still Spry XML dynamic data that is not re-loading (also in the
'MLS' section):
Main page (click on Buy and MLS tabs at top):
http://www.sabinealberti.com/index.html
Direct link to 'Buy' html-fragment:
http://www.sabinealberti.com/content2.html
Direct link to 'MLS' html-fragment:
http://www.sabinealberti.com/content4.html
Sandro -
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> -
AJAX Query, Refresh Spry
Here is the snippet of code I am using on a master/detail
page (Using spry). The goal is to delete the employee, and upon
completion have the master list use a blind up effect to get rid of
that row in the list.
function deleteEmployee() {
var test = $('employeeIdSpan').innerHTML;
var url = "../ajax/deleteEmployee.php?employee_id=" + test;
new Ajax.Updater('detail', url,
method:'get',
onSuccess: function() {
var masterList = Spry.Data.getRegion('employee_list');
//masterList.loadData();
var currentId = test;
//test is $('employee_id').innerHTML b/c we haven't figured
out how to dynamically show the current users id to the javascript.
var blindEffect = "masterEmployee" + currentId;
//Effect.BlindUp(blindEffect);
Effect.Fade('detail', {from:"100", to:"0"});
onFailure: function() {
alert('Something Went Wrong');
However, it's not working......the Effect.BindUp is breaking
it and I can't figure out why.
Thanks :)
Also, if anyone could be so kind to help me w/ this...
//test is $('employee_id').innerHTML b/c we haven't figured
out how to dynamically show the current users id to the javascript.what version of Spry are u using.
check out this topic:
http://labs.adobe.com/technologies/spry/articles/effects_migration/effects_migration.htm
If u havent found any solution yet, please provide me with an
url of the page so i can take a closer look. -
Spry.Widget.AutoSuggest
I am using the Spry.Widget.AutoSuggest as part of another
object. I have the details VERY close, but am missing a small
detail somewhere, and while I think I've tried everything, I'm
still missing something.
In my init, I have the following code:
quote:
* Callbacks used for Predictive Search -------Fails
Spry.Widget.PredictiveSearch.prototype.regionCallback =
Object;
Spry.Widget.PredictiveSearch.regionCallback.prototype.onPostUpdate
= function(notifier, data)
alert("onPostUpdate called for " + data.regionID);
var typedText = this.predictiveSearch.typedTextField.value;
boldTextInChildDivs( data.regionNode, typedText );
this.setMatchIgnoreCase( typedText );
resetSessionTimeoutCheck();
self = this;
var regionCallback = this.regionCallback;
var suggestionsDiv = this.suggestionsDiv;
alert(self.suggestionsDiv)
Spry.Data.Region.addObserver( self.suggestionsDiv,
self.regionCallback );
When I type in the field, everything works as expected,
except that the suggestions div is not populated (it shows as an
empty div in firebug). The alert inside the region callback never
fires, so there is something wrong with how I am creating either
the addObserver, or the function itself. If I make this a function,
and use the 3rd parameter, AND make it a child of the window with a
unique name, it works fine... The idea was to try to make this a
little more like Spry.Widget.CollapsiblePanel in how the callbacks
are handled.
If you're wondering why I'm doing it this way, I am trying to
optimize some pages which use this widget several times per page,
and currently have it hard coded on the page (this is being pulled
into a separate javascript file.)
Thanks in advance.The partial answer is that I was using incorrect syntax. I
started going through the SimpleAutosuggest, and found the
following:
quote:
Spry.Data.Region.addObserver(regionID, { onPostUpdate:
function(notifier, data) {
self.attachClickBehaviors();
Which was basically the syntax I was looking for, which
allows me to use the object notation instead of the function
notation, and call through an object that each autosuggest object
is tied to.
However, it brings me back to my original problem. I've gone
through the Region Observer Notifications documentation here:
http://livedocs.adobe.com/en_US/Spry/SDG/help.html?content=WS57937FB2-D8C1-424d-B3E4-655FD 7A7899B.html
... and in another place, I read that in a callback, you cannot
pass variables because it will run the call back immediately, and
not when you expect it to. That seems to be my problem, but
regardless of if I pass parameters, I get no call back when I
expect it. If I pass parameters, I get the call back immediately,
but not later, if I don't pass parameters, I never get the
callback.
It's got to be something dumb, but I don't see what it is,
and unfortunately, I have no way of putting the code outside our
firewall until it goes live. :(
Thank you for trying.
Maybe you are looking for
-
Some Video works on iPod, some not
Just got 60GB iPod, 5th gen. The only video files that transfer to from iTunes to iPod are files purchase or downloaded from iTunes Music Store. Files that I have converted in QT Pro using the 'Export for iPod' function will not show up. Looking at t
-
My Ethernet Port is physically destoyed. Can I get it replaced?
I have a G5. It was physically broken via screwdriver by a youngster. Can i get a new port? Does that part come out? It doesn't look like it to me. Thanks!
-
Problem with data format when getting from a database
I'm trying to get a date from the database but the problem is that it also return the time. I have tried to change the format of the date when retrived from my database but it still returns the time. Any solutions? String theDBDate = rset.getString("
-
Best way to query cache - get() vs filters?
Hi, I am in a dillemma. Whether to use NamedCache.get() or entrySet(filter) methods to query the cache. Please guide me.. My understanding is that when using 1. get() or getAll(), Coherence checks whether the entry is in the cache, if it does exist i
-
Best way to handle selectedItem in a DropDownList with changing data
I am looking for input on how you would handle this situation. I am having a problem maintaining the selectedItem in a DropDownList which is comprised of values that are populated from a server at regular intervals. So, let's say that that I have a