Sunday, April 4, 2010

If Var == This HELP

Howdy,



I am needing some help with the spry:if statements...



I have a dynamically generated XML page i am pulling my
dataset from and it works find but I am wanting to put ''sponsored''
information above the rest of the information.



My website is
http://www.austinbartour.com/search.php?name=b%26amp;zip=%26amp;liveMusic=%26amp;food=%26amp;smokingArea =



I have all the bars that have a ''b'' in them showing but there
are certain bars that are members and I want them to show up
first... I already have the variable which is ''member'' and the
value needs to be ''Y''...



How would I do this?



Thanks and God Bless,

Robert JohnsonIf Var == This HELP
One easy way would be to grab the info in two data sets...
the first data set grabs your ''sponsored'' ones first... put s them
in a table... then a second data set grabs the non-sponsored ones
and displays them... requires two hits but might be the path of
least resistance.

If Var == This HELP
Ok, Thanks!



Also, for the {ds_EvenOddRow} script to make the rows change
color, can I do a spry:if member=Y change the background color to
another color?



And is there a way to put something behind the spry so it
says ''data loading'' or something?



Thanks!
For a loading graphic you can just display one as an overlay
and then add into the JS file something that sets it's visibility
to false once the data has loaded.



I haven't done it myself but I have seen it done.



For the different color rows,.. if you are going to use to
different data sets then just make the one with sponsored results
get put into a table that has a different CSS class then the one
with normal results and define the row bg-color that way.
Thanks for your help! :-)



I am now trying to get the spry:hover to work but it seems to
be giving me a few problems...
You might be able to use the sort function to get the members
stuff to the top and then do a secondary sort on the bar names:


http://labs.adobe.com/technologies/spry/articles/data_api/apis/dataset.html#sort

Here is a sample on even/odd:


http://labs.adobe.com/technologies/spry/samples/data_region/EvenOddRowSample.htm l

Use spry:state for the loading gif:


http://labs.adobe.com/technologies/spry/samples/data_region/RegionStatesSample.h tml

For spry:hover, is has to be correct in the cascade.

Make sure that the hover class is defined below the alt row
color classes.

Hope this helps.

Don

Adobe Spry team

No comments:

Post a Comment