View Full Version : New to SPRY Query Question

02-09-2010, 02:18 PM
New to SPRY and I was just wondering something. I have a table with the following fields which I am successfully retrieving and displaying from a html table. Course Name, Dept, Code, location & duration. You can view it here http://www.retrotvads.com/site/coursePull2.html . All the data is displaying fine but how could I pull this data from the html table so it would only display courses by a particular department?

I was using the below piece of javascript but it kept throwing errors within Dreamweaver and online. ANy adive would be appreciated.

var rows = ds.getData();
for (var i = 0; i < rows.length; i++)
if (rows[i]["Department"] == "Business")
return rows[i]["ds_RowID"];