Using Spry and CF
I just attended using the Spry framework in conjunction with
Ajax. Has
anyone used this with CF?
And if so, where would be a good place to start. Is there
going to be a
published book (like for CF or DW) that goes along with Spry?
Thanks,
Steve
Hi,
Coldfusion is a server side language, whereas Spry (based on javascript) is client side. Because of this, you cannot mix the two as in
<cfset mystring = ListAppend(mystring, "{string}")>.
You could put your Spry data in a form and then do your manipulation in the action page.
Have a look at http://www.coldfusionjedi.com/index.cfm/2008/5/13/Ask-a-Jedi-Complete-Spry-CRUD-Example.
I hope this helps.
Ben
Similar Messages
-
Flash not rendering correctly in IE using Spry and SWFObject.
Hi,
Tools that I'm using (Flash, Spry and SWFObject)
I just finished converting portions of the image gallery to a
video gallery using FLV Files.
It works great in FireFox and Opera, I guess all mozilla
based browsers.
Now my problem is that I pass the Path variable to Flash for
it to load the FLV file using SWFObject.
Code:
<div spry:detailregion="dsVideos"
class="AccordionPanelContent">
<div id="flashcontent"> You need to upgrade your Flash
Player. </div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("VideoPlayer.swf", "videoplayer",
"427", "288", "8", "#161616");
so.addVariable("video", "{@path}");
so.write("flashcontent");
// ]]>
</script>
</div>
The FLV files won't load at all in IE meaning the variable is
not going thru when Flash is rendered for a second time.
So I added another variable just to see Flash reaction once
the page loaded for the first time.
Code:
so.addVariable("Variable1", "I Love This Bug!");
I added Variable1 to the Flash Movie as a textbox and It
loads in a split second for the first render but when Spry loads it
datasets and renders the region where Flash resides the variable
doesnt go thru and Flash gets a undefined variable.
When Spry renders that region the video variable is not going
thru and no video is shown. :(
Any suggestion?Don -
Have you had any success here? I've been trying to get any
kind of Flash
to load properly in IE in a spry:region (or :detailregion),
and have
failed entirely.
I added spry:state="ready" to the div with the Flash movie,
but no fix.
I've tested with both IE 6 and IE 7 beta, and with FP 8 and
FP 9.
I have a few test pages (everything works great in FireFox):
- www.imagicdigital.com/portfolios/video_state7.html
(uses SWFObject to write the movie, with spry info as
FlashVars)
IE: Flash movie is hidden. No FlashVars are passed.
- www.imagicdigital.com/portfolios/video_state7_noso.html
(same page as above, but with the standard Object/Embed tags,
no SWFObject)
IE: Flash movie is hidden. No FlashVars are passed.
- www.imagicdigital.com/portfolios/video_state7a_noso.html
(same page as above but with hardcoded FlashVars)
IE: Flash movie is hidden. No FlashVars are passed.
- www.imagicdigital.com/portfolios/video_state7b_noso.html
(a Flash movie with no FlashVars at all)
IE: Flash movie is hidden.
- www.imagicdigital.com/portfolios/video_state7c_noso.html
(same as 7a but with spry:region removed from the flash div)
IE: Works perfectly. Flash movie shows up, FlashVars are
passed.
I noticed a few things:
- In IE, the spry:debug generated markup shows FlashVars="",
empty.
- I don't see an innerHTML fix call for the FlashVideo div,
even if I
make it into a spry:region instead of detailregion. Can this
help omehow?
- In IE 7, if I right-click where my flash movie is supposed
to show up,
it does become visible (with no FlashVars). However, IE often
crashes
after that, either right away or on window close. The error
shown in
the alert is "Out of Memory at Line 56". This is both with
and without
passing FlashVars.
NOTE: This error was just recently discussed on the SWFObject
mailing
list. Geoff Stearns found a sort of bug in FP 9 that was also
causing
this same error when 2 Flash movies were embedded with
SWFObject and
each making different ExternalInterface calls. He fixed it by
removing
the function written by Flash when it loads called
"__flash_unloadHandler()". Link to the relevant discussion
thread:
http://lists.deconcept.com/htdig.cgi/swfobject-deconcept.com/2006-July/000795.html
It would be great (crucial, I think) to get Spry to work with
SWFs. Any
ideas or progress? Thanks in advance. -
Clickable email address using Spry and XML
Hi all,
I am using Spry to feed contact data into a web page. Here is
the page:
http://www.bopjodesign.com/CFM/contacts.html
I don't know how to get the email address to show up as a
clickable link. In my XML, I have the info organized thusly. Please
note how the the email address is written:
<contacts>
<contact>
<name>Steve Allbritton</name>
<title>Executive Vice President, Director of
Marketing</title>
<email><a
href="mailto:[email protected]">[email protected]</a></email>
<phone>800.538.5111 ext. 1729</phone>
<cellPhone>727.385.2020</cellPhone>
<fax>866.291.8504</fax>
</contact>
</contacts>
Writing it this way causes the email info not to show up at
all. I'm rather new to XML so I guess I'm not writing it correctly.
Can anyone tell me how to write this so the email addresses show up
as clickable hyperlinks?That did it! Thanks very much. I made a slight change in your
example. In my HTML I wrote:
<p>Email: <a
href="mailto:{email}">{email}</a></p>
That way it would list the email address on the page
dynamically
Thanks for again for the solution. -
How to use Spry and Jquery on the same page.
I'm using both spry (dataset) and jquery (datepicker) on my page. When I load the jquery script my dataset doesn't work.
I've done some research and found that I need to insert an observer that tells jquery when the spry dataset is finished loading. Found this information at: http://forums.adobe.com/message/2899897. I've tried implementing this into my script but just doesn't seem to work. Below is the script from my site, how would I insert an observer into this script?
<script type="text/javascript">
<!--
var ds1 = new Spry.Data.HTMLDataSet("/test/fsasearch_results_dynamic.php", "search_results");
var ds2 = new Spry.Data.HTMLDataSet("/test/countstable_dynamic.php", "table");
$(function() { $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd', beforeShowDay: nonWorkingDates, numberOfMonths: 2, minDate: +5, maxDate: +30});
function nonWorkingDates(date){
var day = date.getDay(), Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6;
var closedDates = [[7, 29, 2009], [8, 25, 2010]];
var closedDays = [[Saturday], [Sunday]];
for (var i = 0; i < closedDays.length; i++) {
if (day == closedDays[i][0]) {
return [false];
for (i = 0; i < closedDates.length; i++) {
if (date.getMonth() == closedDates[i][0] - 1 &&
date.getDate() == closedDates[i][1] &&
date.getFullYear() == closedDates[i][2]) {
return [false];
return [true];
//-->
</script>Please post any SPRY related question in the SPRY forum.
-
I have a query that I am displaying on the page, but I would
also like to
use some of the Spry functionality to use the blind effect. I
have a feeling
though that each <div> needs to be numbered seperately
for spry to work on
each item.
How would you have your <cfoutput> and also have a
different <div ID> ?
Loop over the ID adding a different number to each one?newsgroups2 at fordwebs dot com
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Fordwebs, LLC
http://www.fordwebs.com
"steve grosz" <[email protected]> wrote in
message
news:[email protected]..
> Hello Ken Ford - *ACE*,
>
> Its password protected, if you want, I can email you
with that info, but I
> don't want to put it in the newsgroup.....
>
>> Do you have a URL to a page that I can look at?
>>
>> "steve grosz" <[email protected]> wrote
in message
>> news:[email protected]..
>>
>>> Hello Ken Ford - *ACE*,
>>>
>>> What appears to be happening is that if I list
the url that I'm
>>> trying to display:
>>>
>>> page.cfm?ID=195&tab=0#TabbedPanels1
>>>
>>> Then it appears that the info on tabs 1 & 2
(in addition to tab 1) is
>>> being displayed on what would be tab 0........
>>>
>>>>
http://www.foundationphp.com/tutorials/spry_url_utils.php
>>>>
>>>> "Steve Grosz"
<[email protected]> wrote in message
>>>> news:ga5rbl$56$[email protected]..
>>>>
>>>>> I am using the Spry tabbed menu system
on one of my pages. I'd
>>>>> like to add a tab that I can use to add
user data and post that
>>>>> info to my database.
>>>>>
>>>>> My question is this, one the form sends
its info to the processing
>>>>> page, how can I get CF to send the user
back to the same tab that
>>>>> was used to enter the data? I know I can
send a user back to the
>>>>> same page, but what about a particular
Spry tab, which I guess is
>>>>> actually just a <div>......
>>>>>
>
> -
Spry and Iframe event handlers
Hi,
I am trying to implement an ajax simulated file upload using
spry and iframes. With Spry's power to attach event handlers and
$$() notation for accessiblities is there a way that you can detect
when an iframe is loaded using any of spry's utilities.?there is nothing other than the basic delay in web overlay.
I suppose the only thing to do would be to create the whole article as HTML, but I'm sure that would be over the top, it would put me off!
Alistair -
I just finished a photo Gallery using Spry and Lightbox, any
feedback would be greatly appreciated.
http://www.daishocreative.com/ourWork/index.html
Thank you and happy HolidaysThis is what you get with script disabled:
http://www.projectseven.com/cs4public/spgalusable.gif
You also need a loading image to indicate something is
happening when you
click a thumbnail and your VCR controls are not apparent
enough.
Al Sparber - PVII
http://www.projectseven.com
The Finest Dreamweaver Menus | Galleries | Widgets
http://www.projectseven.com/go/pop
The Ultimate DW Menu System
"extrem94" <[email protected]> wrote in
message
news:gjavpb$7uf$[email protected]..
>I just finished a photo Gallery using Spry and Lightbox,
any feedback would
>be greatly appreciated.
>
http://www.daishocreative.com/ourWork/index.html
>
> Thank you and happy Holidays -
Creating a replacement for Timeline using Spry & Javascript
I am using Spry and Javascript to create a set of images that appear and fade after time - like a slideshow.
I want to be able to REPEAT the whole slideshow in a loop but have had no success.
Any ideas? or ideally a SIMPLER way of doing the whole thing!
Here is a cut down version of the script / source code:
<script src="SpryEffects.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
function MM_effectAppearFade(targetElement, duration, from, to, toggle)
Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
function fade1(thetime) { setTimeout("MM_effectAppearFade('homePagePic1', 3000, 100, 0, false)", thetime);
function show2(thetime) { setTimeout("MM_effectAppearFade('homePagePic2', 3000, 0, 100, false)", thetime);
function fade2(thetime) { setTimeout("MM_effectAppearFade('homePagePic2', 3000, 100, 0, false)", thetime);
function show3(thetime) { setTimeout("MM_effectAppearFade('homePagePic3', 3000, 0, 100, false)", thetime);
function fade3(thetime) { setTimeout("MM_effectAppearFade('homePagePic3', 3000, 100, 0, false)", thetime);
function show4(thetime) { setTimeout("MM_effectAppearFade('homePagePic4', 3000, 0, 100, false)", thetime);
function fade4(thetime) { setTimeout("MM_effectAppearFade('homePagePic4', 3000, 100, 0, false)", thetime);
function show5(thetime) { setTimeout("MM_effectAppearFade('homePagePic5', 3000, 0, 100, false)", thetime);
function fade5(thetime) { setTimeout("MM_effectAppearFade('homePagePic5', 3000, 100, 0, false)", thetime);
function show6(thetime) { setTimeout("MM_effectAppearFade('homePagePic6', 3000, 0, 100, false)", thetime);
function fade6(thetime) { setTimeout("MM_effectAppearFade('homePagePic6', 3000, 100, 0, false)", thetime);
function show7(thetime) { setTimeout("MM_effectAppearFade('homePagePic7', 3000, 0, 100, false)", thetime);
function fade7(thetime) { setTimeout("MM_effectAppearFade('homePagePic7', 3000, 100, 0, false)", thetime);
function show8(thetime) { setTimeout("MM_effectAppearFade('homePagePic8', 3000, 0, 100, false)", thetime);
function fade8(thetime) { setTimeout("MM_effectAppearFade('homePagePic8', 3000, 100, 0, false)", thetime);
function show9(thetime) { setTimeout("MM_effectAppearFade('homePagePic9', 3000, 0, 100, false)", thetime);
function fade9(thetime) { setTimeout("MM_effectAppearFade('homePagePic9', 3000, 100, 0, false)", thetime);
function show1(thetime) { setTimeout("MM_effectAppearFade('homePagePic1', 3000, 0, 100, false)", thetime);
//-->
</script>
</head>
<body onload="MM_preloadImages('images/home/071103wc211289.jpg','images/navigation/navigation_0 5OVER.gif','images/navigation/navigation_06OVER.gif','images/navigation/navigation_07OVER. gif','images/navigation/navigation_08OVER.gif','images/navigation/navigation_09OVER.gif',' images/navigation/navigation_05.gif','images/navigation/navigation_06.gif','images/navigat ion/navigation_07.gif','images/navigation/navigation_08.gif','images/navigation/navigation _09.gif','images/home/071103wc211347.jpg','images/home/071103wc211398.jpg','images/home/07 1103wc211391.jpg','images/home/P3280465websize.jpg','images/home/090320wc223207.jpg','imag es/home/071213wc214342.jpg','images/home/090320wc223152.jpg');
fade1('5000');show2('5500');
fade2('15000');show3('15500');
fade3('25000');show4('25500');
fade4('35000');show5('35500');
fade5('45000');show6('45500');
fade6('55000');show7('55500');
fade7('65000');show8('65500');
fade8('75000');show9('75500');
fade9('85000');show1('85500');
">
[Moved by moderator to Spry forum]Thank you for your suggestions.
The problem with the pre-formatted slide shows is that they have the horribly clunky panel of thumbnails and the ugly animated resizing of photos. All of which have been seem on loads of other sites.
I am looking for just the enlarged images to change through pre-determined time intervals then repeat in a loop.
The images FIT into the design of the page - there is no need for the other panel of thumbnails.
Hope this clarifies things!
I JUST WANT TO LOOP THE SPRY EFFECTS nothing more. -
ciao all ,
I'm too curiuos to start a new project using spry and the
Google " toy" OPENSOCIAL , just to know before starting , do the
Spry team knows if there's any incompatibility between your great
ajax framework and their APIS
for example :
http://code.google.com/apis/opensocial/articles/readwrite.html
excuse me if this post is out of topic
thanks in advance
Paolo5h4k42u1u wrote:
> if i'd use the spry tables with an RSS feed, it'll work
with IE but not with
> FF, but then when i try it with a local XML file, it'll
work with FF but not
> IE? In fact, why does it have trouble at all with the
local file, there should
> be no cross domains to worry about, right?
You're right that there should be no problem with a local
file, but
without seeing the XML file and your code, it's impossible to
say what's
causing the problem. I think your best bet is to post a more
detailed
question in the Spry forum.
http://www.adobe.com/go/labs_spry_pr1_forum
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
pleases Help!
I am trying to get a basic example working using spry and
JSON and i keep getting the following errors:
Spry.Data.HTTPSourceDataSet has no properties
Spry.Data.HTTPSourceDataSet has no properties
I am trying to get my json data from a cfc like this
var dsEmployees = new
Spry.Data.JSONDataSet("./model/CS3/Employee.cfc?method=getAllEmployees",{path:"employeeLi st"});
What am i doing wrong?
Thank youActually it is the first java file include...
Below is my code
dsp_MasterDetail.cfm
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry/">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<script language="JavaScript"
src="./SpryAssets/SpryData.js"
type="text/javascript"></script>
<script language="JavaScript"
src="./SpryAssets/SpryEffects.js"
type="text/javascript"></script>
<script language="JavaScript"
src="./SpryAssets/SpryJSONDataSet.js"
type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
var dsEmployees = new
Spry.Data.JSONDataSet("./model/CS3/Employee.cfc?method=getAllEmployees",{path:"employeeLi st"});
//-->
</script>
<style type="text/css">
<!--
.selected {
background-color: #0099FF;
.hover {
background-color: #FFFFCC;
.even {
background-color: #CCCCCC;
.style1 {
font-size: large;
font-weight: bold;
-->
</style>
</head>
<body>
<table border="1">
<tr>
<td>
<div spry:region="dsEmployees">
<div spry:state="loading">Loading employee data <br
/><img src="ajax-loader.gif" /></div>
<div spry:state="error">An error occured loading your
dataset.</div>
<div spry:state="ready" style="height:200px;
width:200px;overflow:auto;">
<table border="1" >
<tr>
<th spry:sort="FullName">Employee</th>
</tr>
<tr spry:repeat="dsEmployees" spry:setrow="dsEmployees"
spry:hover="hover" spry:select="selected"
onClick="MM_effectAppearFade('Detail_DIV', 1000, 0, 100,
false)">
<td>{FULLNAME}</td>
</tr>
</table>
</div>
</div>
</td>
<td valign="top">
<div align="left" spry:region="dsEmployees"
spry:state="ready"
id="details"><strong>Details</strong><br
/><hr align="left" width="75"/></div>
<div id="Detail_DIV" spry:detailregion="dsEmployees">
<table id="Detail_Table" border="0" width="50%">
<tr>
<th>NT_ID</th><td>{NT_ID}</td>
</tr>
<tr>
<th>EMPLID</th><td>{EMPLID}</td>
</tr>
<tr>
<th>EMAIL</th><td>{EMAIL}</td>
</tr>
<tr>
<th>PHONE</th><td>{PHONE}</td>
</tr>
<tr>
<th>DEPTID</th><td>{DEPTID}</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
Employee.cfc
<cfcomponent displayName="employees" output="yes">
<cffunction name="getAllEmployees" access="remote"
output="yes">
<cfset var allPersons = queryNew("FullName, NT_ID,
EMPLID,EMAIL,PHONE,DEPTID") />
<cfset var toXML = "" />
<cfset var toJSON = "" />
<cfset var xmlQuery = "" />
<cfset var JSONQuery = "" />
<cfquery name="allPersons" datasource="cams_dev"
blockfactor="100">
SET CONCAT_NULL_YIELDS_NULL Off;
SELECT TOP 25 LAST_NAME + ', ' + FIRST_NAME AS FullName,
NT_ID, EMPLID, EMAIL, PHONE, DEPTID
FROM dbo.vwKscUsaPerson
ORDER BY LAST_NAME, FIRST_NAME
SET CONCAT_NULL_YIELDS_NULL On;
</cfquery>
<cfset JSONQuery =
application.toJSON.queryToJSON(allPersons, "employees")>
<cfsetting showdebugoutput="no">
<cfoutput><cfcontent type="text/html"
reset="true">#htmlcodeformat(JSONquery)#</cfoutput>
</cffunction>
</cfcomponent>
this cfc returns this json code
{"employees":[{"DEPTID":"014A420","EMAIL":"[email protected]","EMPLID":"025044","FULLNAME":"Aa dsen,
Ronald","NT_ID":"USATX\AadsenRP","PHONE":"123
456-7891"},{"DEPTID":"IDI-8011","EMAIL":"[email protected]","EMPLID":"KS997E7R","FULLNAME":"A aron,
Earnestine","NT_ID":"KSCBOC\AARONED","PHONE":"123
456-7891"},{"DEPTID":"IDI-KICS","EMAIL":"[email protected]","EMPLID":"KSANC4CD","FULLNAME":"A arts,
Bryan","NT_ID":"ICDNET\AartsBR","PHONE":"123
456-7891"},{"DEPTID":"0162230","EMAIL":"[email protected]","EMPLID":"011000","FULLNAME":"Abad ejos,
Ernesto","NT_ID":"USATX\abadejea","PHONE":"123
456-7891"},{"DEPTID":"0351480","EMAIL":"[email protected]","EMPLID":"004479","FULLNAME":"Abbe y,
David","NT_ID":"USAFL\ABBEYDA","PHONE":"123 456-7891"}]} -
Still working on a website using Spry and Flash. I have this
page (select portfolio) that works in Safari, FF on the Mac and FF
on the PC but not IE7. It was coded using swfobject to load the
Flash.
http://208.106.214.149/eryxtest/index.html
I changed the code to Dreamweaver's Flash loading script. I
now have two problem. One, how to pass a parameter that is being
set - xmlDataPath1 = '{@name}'; to the script. I have this
hardcoded at the moment. Second, for some reason the script now
runs when the page loads and not when selected from the menu like
the the above link.
http://208.106.214.149/eryxtest/indexIESolution2.html
Please, any help would be appreciated. My original goal was
to replace a totally Flash based site with Spry + Flash, eventually
replacing the Flash gallery with a javascript gallery.Charlie,
Did you figure this out? I've got a similar thing, where I'm
calling a simple flash URL, using Spry and an XML file, but it
won't work in IE7.
My document is at:
Golf Gallery
Karey Nickel -
Problems with using Spry photo gallery and Opera browser
Using Dreamweaver CS3. I'm working on a website for a friend.
It looks great in:
-IE 6 and 7
-Firefox
-Safari
But in Opera, the photo gallery I put in (uses spry to change
images as the user rolls over the thumbnail) pops up a login box in
Opera. It doesn't do this in any other browser and it works
perfectly in all other browsers.
WDYT? TIA, SteveUsing Dreamweaver CS3. I'm working on a website for a friend.
It looks great in:
-IE 6 and 7
-Firefox
-Safari
But in Opera, the photo gallery I put in (uses spry to change
images as the user rolls over the thumbnail) pops up a login box in
Opera. It doesn't do this in any other browser and it works
perfectly in all other browsers.
WDYT? TIA, Steve -
How do you generate random data info using json and spry?
I have a mobile applicaton that uses spry datasets that dynamically populate a jquery mobile listview by using a json file. Everything is operating as it should.
However, I would like to understand how to pull random objects from the json file to have them displayed on a different page.
My json file is standard and not complicated. It has several levels. Each is represented as below:
{ "Level1":
{"imageurl":"images/_myimage.png",
"someData":"S,A,P,R",
"levelLongDesc":"further description",
"name": "John Doe",
"page": "referencepage",
"description":"The description of the image"
{"imageurl":"images/_myimage.png",
"someData":"S,A,P,R",
"levelLongDesc":"further description",
"name": "John Doe",
"page": "referencepage",
"description":"The description of the image"
Json file Level1 has about 70 objects
What I would like to do is randomly load one of the Level1 object arrays into the page when the user selects a Level 1 radio button that is on the screen. I know how to create the page, radio buttons and basics, but just don't know how to pull in the random data.
I've found one code sample on this site that speaks to spry and xml, but I haven't been able to apply it in any way that works for me with the json file:
http://forums.adobe.com/message/662551
I've also googled. There isn't much on spry datasets with json and generating random info. There was a little bit on sorting, but that didn't help either.
Does anyone have a good example/tutorial of how to use the random function with spry/json?
TIA
-RachelI've done similar things before. A few thoughts for you:
1. I'm assuming you're doing a buffered period or frequency measurement on the incoming encoder pulses, right? First key point is that you'll have data that is spaced equally in position, but not equally in time. If you are looking for a time-based FFT such that increasing speed will shift your spectrum, you're going to need to go through an interpolation process to resample your data as though equally-spaced in in time.
2. Your 149 pulse per rev encoder may be a significant source of error unless its 149 pulses are placed with extreme accuracy. Any error in pulse placement violates your underlying assumption of data that is equally-spaced in position. It'll be very helpful to send your data through a software lowpass filter to attenuate those artifacts.
3. I am not sure what you mean by "decompose the buffered data (array) into a single datastream." You'll get an array of periods / frequencies from the call to DAQmx Read. If you want to use it in a LabVIEW waveform datatype, you'll first need to do the resampling to create equally-spaced-in-time data. The LabVIEW waveform datatype (and all the analysis functions like FFT that use it) depend on receiving data with a fixed constant time interval between samples.
-Kevin P. -
Spry Horizontal Menu causing site not to load using Firefox and Maverick OSX 10.9.2
Why does Spry Horizontal Menu cause site not to load using Firefox and Maverick OSX 10.9.2?
Your code is terribly malformed.
There are multiple body tags & erroneous tags that overlap your <head> and other content tags. Get those fixed first.
And you also have more than 1 doctype definition in the wrong place.
If my assumption is correct, I think each include file you're using has its own doctype, body, html & head definitions causing final PHP to render all these on your output page.
Run your site through W3 validator like Jon suggested earlier: [Invalid] Markup Validation of http://www.ambppct.org/ - W3C Markup Validator
Fix those and you should be good. -
Issue using spry regions in spry tabbed content
I am having a slight issue with making a slideshow in a spry tabbed panel set. I have tested my XML used for the slideshow in a basic blank page, where I created the spry source and detail regions, and it loads fine. When you click on the thumbnail, the detail region loads the image. But when I place the slideshow in my websites page, it is inside a spry tabbed panel set. Where it just doesn't seem to want to work.
Has anyone had this issue?
I posted a copy of the page at the link below. The slideshow is under the portfolio tab
http://www.fscproductions.net/spry/
Thanks
JFHi,
On the main forum page you will have read the following.
Announcement: New to Spry, or the Spry forums?
Hide Details
Before you post a topic please verify that:
You are using the latest Spry files
The latest version of the Adobe Spry Framework is 1.6.1, this is the same version that ships with Dreamweaver CS4. If you use Dreamweaver CS3 (uses Spry 1.4), its wise to upgrade your files to the latest version. This can easily be done using the Spry Updater that can be found here.
After you have upgraded and not removed the remarks from the Spry files, we will have another look at it.
Ben
Maybe you are looking for
-
im trying to move all my music to another drive because my main one is full, and when i do and try to play a song in itunes i need to locate it on my computer and tell itunes where it is, for every single song. cant itunes do this for me ?
-
CRMXIF_ORDER_SAVE_M - Lead_Start Date not being populate.
Hi Gurus, I am migrating Lead Data in SAP CRM using CRMXIF_ORDER_SAVE_M / CRMXIF_ORDER_SAVE_U03 IDOC structure. The problem is that the Lead Start and End dates are not being passed to the database. I am populating the data at Header Level using the
-
T7900 remote screwed...
Hey. I bought a Creative Inspire T7900 with my dell computer, and now i have a problem with the sound system(which is covered by dell), but i hoped for a quicker answer here before i asked them. The bass in my sound dissapears sometimes when i use th
-
Can you get and use internet explorer for mac?
I am wondering If I can obtain and use internet explorer?
-
Can we use this SQL statement and create a sum select WHSE_DBA.FLIGHT_ACTIVITY.rental_cost, WHSE_DBA.FUEL_PURCHASE.actual_cost, WHSE_DBA.FUEL_PURCHASE.unit_cost, WHSE_DBA.FUEL_PURCHASE.total_cost, sum(WHSE_DBA.FLIGHT_ACTIVITY.rental_cost+ WHSE_DBA.FU